diff options
author | Sven Weidauer <sven.weidauer@gmail.com> | 2011-01-23 12:04:06 +0000 |
---|---|---|
committer | Sven Weidauer <sven.weidauer@gmail.com> | 2011-01-23 12:04:06 +0000 |
commit | 86c9c9e63900ce0344cb9a4eb34d4e296de843e4 (patch) | |
tree | a2e5a2d97a72ee8658412ba07f5e9667a4f1fa23 /makefiles/Makefile.gcc | |
parent | 2df4c9eb34e086100e048f7ba9cf42bcf89cb44b (diff) | |
download | buildsystem-86c9c9e63900ce0344cb9a4eb34d4e296de843e4.tar.gz buildsystem-86c9c9e63900ce0344cb9a4eb34d4e296de843e4.tar.bz2 |
Detecting apple clang and building universal binaries with clang and gcc on Mac OS X.
svn path=/trunk/tools/buildsystem/; revision=11461
Diffstat (limited to 'makefiles/Makefile.gcc')
-rw-r--r-- | makefiles/Makefile.gcc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/makefiles/Makefile.gcc b/makefiles/Makefile.gcc index 3115889..7d11b24 100644 --- a/makefiles/Makefile.gcc +++ b/makefiles/Makefile.gcc @@ -58,6 +58,23 @@ ifeq ($(COMPONENT_TYPE),riscos-module) endif ############################################################################### +# Mac OS X Universal Binaries +############################################################################### + +ifeq ($(TARGET),Darwin) + ifneq ($(UNIVERSAL),) + UNIVERSAL_FLAGS := $(foreach arch,$(UNIVERSAL),-arch $(arch) ) + CC_CAN_BUILD_AND_DEP := no + CC_CANNOT_DEP := yes + + CFLAGS += $(UNIVERSAL_FLAGS) + LDFLAGS += $(UNIVERSAL_FLAGS) + CXXFLAGS += $(UNIVERSAL_FLAGS) + ARFLAGS += -s + endif +endif + +############################################################################### # Other settings ############################################################################### |