mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
Fix oversized GOT problem with gcc-4 on alpha
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22777 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0ae380a8ac
commit
7ac17529d2
@ -625,6 +625,12 @@ endif
|
||||
# (defined by the user's project) and "LLVM" libs (defined
|
||||
# by the # LLVM project).
|
||||
#---------------------------------------------------------
|
||||
#some versions of gcc on alpha produce to many symbols, so use a .a file
|
||||
ifeq ($(ARCH),Alpha)
|
||||
USEDLIBS := $(subst LLVMCore, LLVMCore.a, $(USEDLIBS))
|
||||
LLVMLIBS := $(subst LLVMCore, LLVMCore.a, $(LLVMLIBS))
|
||||
endif
|
||||
|
||||
ProjLibsOptions := $(patsubst %.a.o, -l%, $(addsuffix .o, $(USEDLIBS)))
|
||||
ProjLibsOptions := $(patsubst %.o, $(LibDir)/%.o, $(ProjLibsOptions))
|
||||
LLVMLibsOptions := $(patsubst %.a.o, -l%, $(addsuffix .o, $(LLVMLIBS)))
|
||||
|
@ -9,5 +9,9 @@
|
||||
LEVEL = ../..
|
||||
LIBRARYNAME = LLVMCore
|
||||
|
||||
ifeq ($(ARCH),Alpha)
|
||||
BUILD_ARCHIVE = 1
|
||||
endif
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user