bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

soname of gc variant of gnustep-base


From: James Knight
Subject: soname of gc variant of gnustep-base
Date: Thu, 9 May 2002 20:16:05 -0400

When the GC variant of the gnustep-base library is compiled, it has the same soname as the non-gc variant. This is certainly not a good idea, as then the dynamic linker will get them confused. There is currently no way to have both GC and non-GC libraries in the default linker path at the same time, which means any program that wants to use the GC variant *must* be run with LD_LIBRARY_PATH set.

I'd suggest something like the following, which makes the soname libgnustep-base_gc.so.1 instead of just libgnustep-base.so.1. I'm not too well versed in the GNUStep makefile system (I've so far managed to avoid using it), so I dunno if this is the best solution, but it worked for me.

*** base.make.orig      Thu May  9 20:08:27 2002
--- base.make   Thu May  9 20:08:45 2002
***************
*** 48,51 ****
--- 48,52 ----
      AUXILIARY_CPPFLAGS += -DGS_WITH_GC=1
      AUXILIARY_INCLUDE_DIRS += -I/usr/include/gc
+     LIBRARY_NAME_SUFFIX := gc$(LIBRARY_NAME_SUFFIX)
    endif
  endif




reply via email to

[Prev in Thread] Current Thread [Next in Thread]