[llvm-commits] CVS: llvm/test/Programs/SingleSource/Makefile.singlesrc

John Criswell criswell at cs.uiuc.edu
Mon Dec 8 17:01:13 PST 2003


Changes in directory llvm/test/Programs/SingleSource:

Makefile.singlesrc updated: 1.22 -> 1.23

---
Log message:

Use LDFLAGS to specify link flags for native applications.
These options should be the same for linking LLC, CBE, and native code.



---
Diffs of the changes:  (+2 -2)

Index: llvm/test/Programs/SingleSource/Makefile.singlesrc
diff -u llvm/test/Programs/SingleSource/Makefile.singlesrc:1.22 llvm/test/Programs/SingleSource/Makefile.singlesrc:1.23
--- llvm/test/Programs/SingleSource/Makefile.singlesrc:1.22	Sat Sep  6 10:13:41 2003
+++ llvm/test/Programs/SingleSource/Makefile.singlesrc	Mon Dec  8 16:59:06 2003
@@ -33,6 +33,6 @@
 
 # FIXME: LIBS should be specified, not hardcoded to -lm
 Output/%.native: $(SourceDir)/%.c Output/.dir
-	$(CC) $(CFLAGS) -O2 $< -lm -o $@
+	$(CC) $(CFLAGS) -O2 $< -lm -o $@ $(LDFLAGS)
 Output/%.native: $(SourceDir)/%.cpp Output/.dir
-	$(CXX) $(CXXFLAGS) -O2 $< -lm -o $@
+	$(CXX) $(CXXFLAGS) -O2 $< -lm -o $@ $(LDFLAGS)





More information about the llvm-commits mailing list