mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
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:
parent
6b5df04544
commit
1c758090b6
2 changed files with 15 additions and 1 deletions
|
@ -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
|
||||
|
|
10
target.make
10
target.make
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue