Do not add -framework flags for native libraries when compiling; only needed

when linking!


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@18046 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2003-11-03 22:43:16 +00:00
parent 0ce9efadd3
commit a003dd9081
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Mon Nov 3 23:34:56 2003 Nicola Pero <n.pero@mi.flashnet.it>
* rules.make (ADDITIONAL_INCLUDE_DIRS): Do not add -framework
flags from ADDITIONAL_NATIVE_LIBS.
Mon Nov 3 23:30:47 2003 Marcus Muller <znek@mulle-kybernetik.com>
* library-combo.make (INTERNAL_OBJCFLAGS): Do not add -framework

View file

@ -163,11 +163,10 @@ endif
# Implement ADDITIONAL_NATIVE_LIBS
#
# A native lib is a framework on apple, and a shared library
# everywhere else. Here we provide the appropriate compile/link flags
# everywhere else. Here we provide the appropriate link flags
# to support it transparently on the two platforms.
#
ifeq ($(FOUNDATION_LIB),apple)
ADDITIONAL_INCLUDE_DIRS += $(foreach lib,$(ADDITIONAL_NATIVE_LIBS),-framework $(lib))
ADDITIONAL_OBJC_LIBS += $(foreach lib,$(ADDITIONAL_NATIVE_LIBS),-framework $(lib))
else
ADDITIONAL_OBJC_LIBS += $(foreach lib,$(ADDITIONAL_NATIVE_LIBS),-l $(lib))