summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-09 03:31:02 +0000
committerChris Lattner <sabre@nondot.org>2005-03-09 03:31:02 +0000
commitb9f0cebeb5c76510096da326d4612c2962ad9b9c (patch)
treeaca1b40eea0a7dcb0efaf5419932f9c0a2d841f4 /llvm/lib/Support
parent1f1462fafa90a3e5f44edc0847096337982d87e7 (diff)
downloadbcm5719-llvm-b9f0cebeb5c76510096da326d4612c2962ad9b9c.tar.gz
bcm5719-llvm-b9f0cebeb5c76510096da326d4612c2962ad9b9c.zip
get bugpoint working on ia64, by building .so's with -fpic. :)
llvm-svn: 20525
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/ToolRunner.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Support/ToolRunner.cpp b/llvm/lib/Support/ToolRunner.cpp
index a25e4bd0905..46971f8d23f 100644
--- a/llvm/lib/Support/ToolRunner.cpp
+++ b/llvm/lib/Support/ToolRunner.cpp
@@ -450,6 +450,10 @@ int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType,
#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
OpenPOWER on IntegriCloud