aboutsummaryrefslogtreecommitdiffstats
path: root/tools
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
commit1c81f1390dddeb14c19bbab7b4715af3a5985877 (patch)
tree3cfeb3e52c04a438ba90d98f4042881386115936 /tools
parent411eba0eafd60f54f89623e90992a1c125d2378a (diff)
downloadexternal_llvm-1c81f1390dddeb14c19bbab7b4715af3a5985877.zip
external_llvm-1c81f1390dddeb14c19bbab7b4715af3a5985877.tar.gz
external_llvm-1c81f1390dddeb14c19bbab7b4715af3a5985877.tar.bz2
get bugpoint working on ia64, by building .so's with -fpic. :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20525 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/bugpoint/ToolRunner.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp
index a25e4bd..46971f8 100644
--- a/tools/bugpoint/ToolRunner.cpp
+++ b/tools/bugpoint/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