summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-30 16:38:06 +0000
committerChris Lattner <sabre@nondot.org>2006-05-30 16:38:06 +0000
commit73faa39d293e0c6a265e071964af4574808f71de (patch)
tree5abe24de0703b1e6996bace8c075626794b747b9 /Makefile.rules
parentdd0f8df16100630a3e74d214f508e2cc94ec8d70 (diff)
downloadllvm-73faa39d293e0c6a265e071964af4574808f71de.tar.gz
llvm-73faa39d293e0c6a265e071964af4574808f71de.tar.bz2
llvm-73faa39d293e0c6a265e071964af4574808f71de.tar.xz
Enable -fno-use-cxa-atexit on darwin/ppc also.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28558 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile.rules b/Makefile.rules
index ac4a6fd66e..b719e8c130 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -363,8 +363,9 @@ ifeq ($(OS),HP-UX)
CompileCommonOpts := -D_REENTRANT -D_HPUX_SOURCE
endif
-# If we are building a universal binary on Mac OS/X, pass extra options. This is
-# useful to people that want to link the LLVM libraries into their universal apps.
+# If we are building a universal binary on Mac OS/X, pass extra options. This
+# is useful to people that want to link the LLVM libraries into their universal
+# apps.
ifdef UNIVERSAL
CompileCommonOpts += \
-arch i386 -arch ppc -isysroot /Developer/SDKs/MACOSX10.4u.sdk/
@@ -374,12 +375,10 @@ ifdef UNIVERSAL
DISABLE_AUTO_DEPENDENCIES=1
endif
-# Temporary workaround for a Mac OSX / x86 compatibility issue.
+# Temporary workaround for a Mac OSX compatibility issue.
ifeq ($(OS),Darwin)
-ifeq ($(ARCH),x86)
CXX.Flags += -fno-use-cxa-atexit
endif
-endif
LD.Flags += -L$(LibDir) -L$(LLVMLibDir)
CPP.BaseFlags += -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
@@ -786,7 +785,8 @@ else
all-local:: $(LibName.BCA)
ifdef EXPORTED_SYMBOL_FILE
-BCLinkLib = $(GCCLD) -L$(CFERuntimeLibDir) -internalize-public-api-file=$(EXPORTED_SYMBOL_FILE)
+BCLinkLib = $(GCCLD) -L$(CFERuntimeLibDir) \
+ -internalize-public-api-file=$(EXPORTED_SYMBOL_FILE)
$(LibName.BCA): $(ObjectsBC) $(LibDir)/.dir $(GCCLD) \
$(LLVMToolDir)/llvm-ar