Adam Fedor wrote:

2003-07-19 Adam Fedor <[EMAIL PROTECTED]>


        * target.make: Set thread library in AUXILIARY_OBJC_LIBS. Set
        reentrant flags for all targets if threaded. Remove duplicates.

Index: target.make
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/make/target.make,v
retrieving revision 1.146
diff -u -r1.146 target.make
--- target.make 16 Jul 2003 08:43:06 -0000 1.146
+++ target.make 20 Jul 2003 03:43:46 -0000
@@ -34,7 +34,12 @@
#
# Target specific libraries
#
-TARGET_SYSTEM_LIBS = $(CONFIG_SYSTEM_LIBS)
+TARGET_SYSTEM_LIBS = $(CONFIG_SYSTEM_LIBS) -lm
+ifneq ("$(objc_threaded)","")
+ INTERNAL_CFLAGS = -D_REENTRANT
+ INTERNAL_OBJCFLAGS = -D_REENTRANT
+ AUXILIARY_OBJC_LIBS += $(objc_threaded)
+endif

Actually, I just noticed in this case the -lpthread would come before -lobjc in the link line, which is OK for shared libs, but possibly not static linking. Should we care? Is there another way to add objc_threaded so it is not linked in C programs (which can cause problems on some platforms)?




_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to