Fix oversized GOT problem with gcc-4 on alpha
authorAndrew Lenharth <andrewl@lenharth.org>
Sat, 13 Aug 2005 05:09:50 +0000 (05:09 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Sat, 13 Aug 2005 05:09:50 +0000 (05:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22777 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules
lib/VMCore/Makefile

index a0897a5ec8a918c86d5fca7c395c6ce06c32f0ef..53bfa6dbd8a1409ccd4cd9b0da98e8aab6df3c1a 100644 (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)))
index d3df2bfe785f8c135838a2c1886ab0ca5a5e230e..8c95e08d8ed182587856f603a37c5f9faba91103 100644 (file)
@@ -9,5 +9,9 @@
 LEVEL = ../..
 LIBRARYNAME = LLVMCore
 
+ifeq ($(ARCH),Alpha)
+BUILD_ARCHIVE = 1
+endif
+
 include $(LEVEL)/Makefile.common