Fixed compilation/linking on FreeBSD with -pthread

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@21456 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2005-07-12 14:23:38 +00:00
parent 6b5df04544
commit 1c758090b6
2 changed files with 15 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2005-07-12 Nicola Pero <n.pero@mi.flashnet.it>
* target.make (FreeBSD ELF): if -pthread is being used for
threads, add -pthread to INTERNAL_CFLAGS, INTERNAL_OBJCFLAGS,
INTERNAL_LDFLAGS.
2005-07-12 Nicola Pero <n.pero@mi.flashnet.it>
* Instance/framework.make (DUMMY_FRAMEWORK): Mangle

View file

@ -575,7 +575,6 @@ BUNDLE_LD = $(CC)
BUNDLE_LDFLAGS += -shared
ADDITIONAL_LDFLAGS += -rdynamic
STATIC_LDFLAGS += -static
endif
#
# end Linux ELF
@ -654,6 +653,15 @@ BUNDLE_LD = $(CC)
BUNDLE_LDFLAGS += -shared
ADDITIONAL_LDFLAGS += -rdynamic
STATIC_LDFLAGS += -static
##
## The -pthread flag must be passed to all compilation/link commands.
##
ifeq ($(objc_threaded), -pthread)
INTERNAL_CFLAGS += -pthread
INTERNAL_OBJCFLAGS += -pthread
INTERNAL_LDFLAGS += -pthread
endif
endif
endif
#