Fixed 'make OBJCFLAGS=xxx' to add xxx to the OBJCFLAGS without removing the default ones

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@30985 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2010-07-16 15:26:16 +00:00
parent f1f2fb67aa
commit 1b588bbb1c
2 changed files with 13 additions and 4 deletions

View file

@ -1,3 +1,11 @@
2010-07-16 Nicola Pero <nicola.pero@meta-innovation.com>
* common.make: Set INTERNAL_OBJCFLAGS, not OBJCFLAGS, so that
OBJCFLAGS is a free variable that can be used on the command-line,
as in "make OBJCFLAGS=-fobjc-nonfragile-abi", to add some custom
Objective-C flags to the compilation run without interfering with
the standard ones.
2010-06-23 Nicola Pero <nicola.pero@meta-innovation.com>
* Documentation/README.MinGW: Mention solution to install

View file

@ -592,26 +592,27 @@ endif
# compiler warnings. But we really need to investigate why the
# warning appear in the first place, if they are serious or not, and
# what can be done about it.
OBJCFLAGS = -fno-strict-aliasing
INTERNAL_OBJCFLAGS = -fno-strict-aliasing
CFLAGS =
# If the compiler supports native ObjC exceptions and the user wants us to
# use them, turn them on!
ifeq ($(USE_OBJC_EXCEPTIONS), yes)
OBJCFLAGS += -fexceptions -fobjc-exceptions -D_NATIVE_OBJC_EXCEPTIONS
INTERNAL_OBJCFLAGS += -fexceptions -fobjc-exceptions -D_NATIVE_OBJC_EXCEPTIONS
INTERNAL_LDFLAGS += -shared-libgcc -fexceptions
endif
# If the compiler supports nonfragile ABI and the user wants us to
# use them, turn them on!
ifeq ($(USE_NONFRAGILE_ABI), yes)
OBJCFLAGS += -fobjc-nonfragile-abi -D_NONFRAGILE_ABI
INTERNAL_OBJCFLAGS += -fobjc-nonfragile-abi -D_NONFRAGILE_ABI
INTERNAL_LDFLAGS += -fobjc-nonfragile-abi
endif
# If we are using garbage collection we set a define to say so.
ifeq ($(OBJC_WITH_GC), yes)
OBJCFLAGS += -DGS_WITH_GC=1
INTERNAL_OBJCFLAGS += -DGS_WITH_GC=1
endif
#