mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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
This commit is contained in:
parent
dd0f8df161
commit
73faa39d29
@ -363,8 +363,9 @@ ifeq ($(OS),HP-UX)
|
|||||||
CompileCommonOpts := -D_REENTRANT -D_HPUX_SOURCE
|
CompileCommonOpts := -D_REENTRANT -D_HPUX_SOURCE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# If we are building a universal binary on Mac OS/X, pass extra options. This is
|
# If we are building a universal binary on Mac OS/X, pass extra options. This
|
||||||
# useful to people that want to link the LLVM libraries into their universal apps.
|
# is useful to people that want to link the LLVM libraries into their universal
|
||||||
|
# apps.
|
||||||
ifdef UNIVERSAL
|
ifdef UNIVERSAL
|
||||||
CompileCommonOpts += \
|
CompileCommonOpts += \
|
||||||
-arch i386 -arch ppc -isysroot /Developer/SDKs/MACOSX10.4u.sdk/
|
-arch i386 -arch ppc -isysroot /Developer/SDKs/MACOSX10.4u.sdk/
|
||||||
@ -374,12 +375,10 @@ ifdef UNIVERSAL
|
|||||||
DISABLE_AUTO_DEPENDENCIES=1
|
DISABLE_AUTO_DEPENDENCIES=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Temporary workaround for a Mac OSX / x86 compatibility issue.
|
# Temporary workaround for a Mac OSX compatibility issue.
|
||||||
ifeq ($(OS),Darwin)
|
ifeq ($(OS),Darwin)
|
||||||
ifeq ($(ARCH),x86)
|
|
||||||
CXX.Flags += -fno-use-cxa-atexit
|
CXX.Flags += -fno-use-cxa-atexit
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
LD.Flags += -L$(LibDir) -L$(LLVMLibDir)
|
LD.Flags += -L$(LibDir) -L$(LLVMLibDir)
|
||||||
CPP.BaseFlags += -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
|
CPP.BaseFlags += -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
|
||||||
@ -786,7 +785,8 @@ else
|
|||||||
all-local:: $(LibName.BCA)
|
all-local:: $(LibName.BCA)
|
||||||
|
|
||||||
ifdef EXPORTED_SYMBOL_FILE
|
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) \
|
$(LibName.BCA): $(ObjectsBC) $(LibDir)/.dir $(GCCLD) \
|
||||||
$(LLVMToolDir)/llvm-ar
|
$(LLVMToolDir)/llvm-ar
|
||||||
|
Loading…
Reference in New Issue
Block a user