[llvm-commits] CVS: llvm/Makefile.rules

Andrew Lenharth alenhar2 at cs.uiuc.edu
Fri Aug 12 22:10:02 PDT 2005



Changes in directory llvm:

Makefile.rules updated: 1.317 -> 1.318
---
Log message:

Fix oversized GOT problem with gcc-4 on alpha

---
Diffs of the changes:  (+6 -0)

 Makefile.rules |    6 ++++++
 1 files changed, 6 insertions(+)


Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.317 llvm/Makefile.rules:1.318
--- llvm/Makefile.rules:1.317	Fri Jul 22 17:43:40 2005
+++ llvm/Makefile.rules	Sat Aug 13 00:09:50 2005
@@ -625,6 +625,12 @@
 # (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)))






More information about the llvm-commits mailing list