[llvm-commits] CVS: llvm/lib/Support/ToolRunner.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Mar 8 19:31:19 PST 2005



Changes in directory llvm/lib/Support:

ToolRunner.cpp updated: 1.39 -> 1.40
---
Log message:

get bugpoint working on ia64, by building .so's with -fpic. :)


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

 ToolRunner.cpp |    4 ++++
 1 files changed, 4 insertions(+)


Index: llvm/lib/Support/ToolRunner.cpp
diff -u llvm/lib/Support/ToolRunner.cpp:1.39 llvm/lib/Support/ToolRunner.cpp:1.40
--- llvm/lib/Support/ToolRunner.cpp:1.39	Sat Feb 26 22:32:35 2005
+++ llvm/lib/Support/ToolRunner.cpp	Tue Mar  8 21:31:02 2005
@@ -450,6 +450,10 @@
 #else
     "-shared",                   // `-shared' for Linux/X86, maybe others
 #endif
+
+#if defined(__ia64__)
+    "-fPIC",                     // IA64 requires shared objs to contain PIC
+#endif
     "-o", OutputFile.c_str(),    // Output to the right filename...
     "-O2",                       // Optimize the program a bit...
     0






More information about the llvm-commits mailing list