freebsd-ports/textproc/scim/files/patch-src-scim_helper_manager_server.cpp
Tijl Coosemans 6e0d02ef3d - Fix linker problem by removing libtool dependency. The combination of
USE_AUTOTOOLS, USE_GCC and C++ is broken because /usr/local/bin/libtool
  has hardcoded the linker it was built with.  So on FreeBSD 10 it tries
  to link gcc compiled C++ code with clang which does not work.
- Remove USE_GCC and fix build with clang with two new patches. [1]
- Fix build with libc++ by removing -lstdc++ from linker flags.  The
  compiler automatically adds the right runtime library.
- Add LICENSE.
- Convert gnomehack to pathfix.
- Remove references to PTHREAD_LIBS and PTHREAD_CFLAGS.
- Support staging.
- Remove an old patch that's no longer needed.

PR:		ports/164618 [1]
Submitted by:	Paul Ambrose <ambrosehua@gmail.com> [1]
Approved by:	maintainer timeout (2 weeks)
2013-10-22 12:10:35 +00:00

21 lines
718 B
C++

--- src/scim_helper_manager_server.cpp.orig 2008-11-02 07:42:38.000000000 +0100
+++ src/scim_helper_manager_server.cpp 2013-10-08 17:37:59.000000000 +0200
@@ -95,9 +95,8 @@
// so I added a workaround: have an array of modules and unload them all together in the end only.
// TODO Need to figure out what's going on with this issue.
- HelperModule module[mod_list.size ()];
-
if (mod_list.size ()) {
+ HelperModule *module = new HelperModule[mod_list.size ()];
for (size_t i = 0; i < mod_list.size (); ++i) {
@@ -120,6 +119,7 @@
for (size_t i = 0; i < mod_list.size (); ++i) {
module[i].unload ();
}
+ delete[] module;
}
}