bug-gnustep
[Top][All Lists]
Advanced

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

Re: [RFC]: target.make simplification


From: Adam Fedor
Subject: Re: [RFC]: target.make simplification
Date: Sat, 19 Jul 2003 22:03:35 -0600
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.1) Gecko/20020905



Adam Fedor wrote:

2003-07-19  Adam Fedor  <fedor@gnu.org>

        * 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)?





reply via email to

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