Changes in directory llvm-test:

Makefile.programs updated: 1.220 -> 1.221
---
Log message:

Don't try to link with crtend if the llvm-gcc version is 4. This just
eliminates gccld warning messages about not being able to find the crtend
library if it hasn't been built.


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

 Makefile.programs |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)


Index: llvm-test/Makefile.programs
diff -u llvm-test/Makefile.programs:1.220 llvm-test/Makefile.programs:1.221
--- llvm-test/Makefile.programs:1.220   Tue Jun 27 15:37:01 2006
+++ llvm-test/Makefile.programs Mon Aug 28 14:16:59 2006
@@ -46,6 +46,12 @@
 .PRECIOUS: Output/%.cbe Output/%.cbe.c Output/%.llvm.bc
 .PRECIOUS: Output/%.linked.bc 
 
+# If we're using the llvm-gcc3 compiler then we need to also link with the
+# llvm c runtime library, othwerwise we don't
+ifneq ($(LLVMGCC_MAJVERS),4)
+LIBS += -lcrtend
+endif
+
 PROGDIR = $(PROJ_SRC_ROOT)
 
 #
@@ -224,7 +230,7 @@
 
 $(PROGRAMS_TO_TEST:%=Output/%.llvm.bc): \
 Output/%.llvm.bc: Output/%.linked.bc $(LGCCLDPROG)
-       -$(LGCCLD) $(STATS) $< $(EXTRA_LINKTIME_OPT_FLAGS) -lc $(LIBS) -lcrtend 
-o Output/$*.llvm
+       -$(LGCCLD) $(STATS) $< $(EXTRA_LINKTIME_OPT_FLAGS) -lc $(LIBS) -o 
Output/$*.llvm
 ifneq ($(OPTPASSES),)
        -$(LOPT) -q $(OPTPASSES) < $@ > [EMAIL PROTECTED]
        $(MV) -f [EMAIL PROTECTED] $@
@@ -232,7 +238,7 @@
 
 $(PROGRAMS_TO_TEST:%=Output/%.llvm): \
 Output/%.llvm: Output/%.linked.bc $(LGCCLDPROG)
-       -$(LGCCLD) $(STATS) $< -lc $(LIBS) -lcrtend -o Output/$*.llvm
+       -$(LGCCLD) $(STATS) $< -lc $(LIBS) -o Output/$*.llvm
 ifneq ($(OPTPASSES),)
        -$(LOPT) -q $(OPTPASSES) < $@ > [EMAIL PROTECTED]
        $(MV) -f [EMAIL PROTECTED] $@
@@ -240,20 +246,20 @@
 
 $(PROGRAMS_TO_TEST:%=Output/%.noopt-llvm.bc): \
 Output/%.noopt-llvm.bc: Output/%.linked.rbc $(LGCCLDPROG)
-       -$(LGCCLD) -disable-opt $(STATS) $< -lc $(LIBS) -lcrtend -o 
Output/$*.noopt-llvm
+       -$(LGCCLD) -disable-opt $(STATS) $< -lc $(LIBS) -o Output/$*.noopt-llvm
 
 $(PROGRAMS_TO_TEST:%=Output/%.noopt-llvm): \
 Output/%.noopt-llvm: Output/%.linked.rbc $(LGCCLDPROG)
-       -$(LGCCLD) -disable-opt $(STATS) $< -lc $(LIBS) -lcrtend -o 
Output/$*.noopt-llvm
+       -$(LGCCLD) -disable-opt $(STATS) $< -lc $(LIBS) -o Output/$*.noopt-llvm
 
 
 $(PROGRAMS_TO_TEST:%=Output/%.nogccldopt-llvm.bc): \
 Output/%.nogccldopt-llvm.bc: Output/%.linked.bc $(LGCCLDPROG)
-       -$(LGCCLD) -disable-opt $(STATS) $< -lc $(LIBS) -lcrtend -o 
Output/$*.nogccldopt-llvm
+       -$(LGCCLD) -disable-opt $(STATS) $< -lc $(LIBS) -o 
Output/$*.nogccldopt-llvm
 
 $(PROGRAMS_TO_TEST:%=Output/%.nogccldopt-llvm): \
 Output/%.nogccldopt-llvm: Output/%.linked.rbc $(LGCCLDPROG)
-       -$(LGCCLD) -disable-opt $(STATS) $< -lc $(LIBS) -lcrtend -o 
Output/$*.nogccldopt-llvm
+       -$(LGCCLD) -disable-opt $(STATS) $< -lc $(LIBS)  -o 
Output/$*.nogccldopt-llvm
 
 endif   # ifndef DISABLE_FOR_LLVM_PROGRAMS
 



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to