mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
Fix linking problem on darwin.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@20433 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ec11275548
commit
02ddcea22f
2 changed files with 12 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
|||
2004-12-19 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* target.make: For gnu compiler on darwin, use flat namespace and
|
||||
undefined warning for executables as well as libraries/bundles so
|
||||
that we can link with libraries/bundles without havint to explictly
|
||||
name all the libraries that thay depend upon.
|
||||
|
||||
2004-12-06 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Documentation/machines.texi (MacOSX): Update (info from Markus
|
||||
|
|
|
@ -283,11 +283,12 @@ ifeq ($(FOUNDATION_LIB), apple)
|
|||
DYLIB_DEF_FRAMEWORKS += -framework Foundation
|
||||
endif
|
||||
|
||||
|
||||
ifeq ($(CC_BUNDLE), no)
|
||||
# GNU compiler
|
||||
SHARED_LD_PREFLAGS += -noall_load -read_only_relocs warning \
|
||||
-flat_namespace -undefined warning
|
||||
|
||||
INTERNAL_LDFLAGS += -flat_namespace -undefined warning
|
||||
|
||||
SHARED_LD_PREFLAGS += -noall_load -read_only_relocs warning
|
||||
# Useful flag: -Wl,-single_module. This flag only
|
||||
# works starting with 10.3. libs w/ffcall don't link on darwin/ix86 without it.
|
||||
ifeq ($(findstring darwin7, $(GNUSTEP_TARGET_OS)), darwin7)
|
||||
|
@ -313,7 +314,7 @@ SHARED_LIB_LINK_CMD = \
|
|||
$(LN_S) $(LIB_LINK_VERSION_FILE) $(LIB_LINK_FILE))
|
||||
|
||||
BUNDLE_LD = /usr/bin/ld
|
||||
BUNDLE_LDFLAGS += -bundle -flat_namespace -undefined suppress /usr/lib/bundle1.o
|
||||
BUNDLE_LDFLAGS += -bundle /usr/lib/bundle1.o
|
||||
|
||||
else
|
||||
# Apple Compiler
|
||||
|
|
Loading…
Reference in a new issue