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:
Andrew Lenharth 2005-08-13 05:09:50 +00:00
parent 0ae380a8ac
commit 7ac17529d2
2 changed files with 10 additions and 0 deletions

View File

@ -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)))

View File

@ -9,5 +9,9 @@
LEVEL = ../..
LIBRARYNAME = LLVMCore
ifeq ($(ARCH),Alpha)
BUILD_ARCHIVE = 1
endif
include $(LEVEL)/Makefile.common