get bugpoint working on ia64, by building .so's with -fpic. :)
authorChris Lattner <sabre@nondot.org>
Wed, 9 Mar 2005 03:31:02 +0000 (03:31 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 9 Mar 2005 03:31:02 +0000 (03:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20525 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/ToolRunner.cpp
tools/bugpoint/ToolRunner.cpp

index a25e4bd09054004cc28897ceaca6d12fe8106f3b..46971f8d23fb97693a1b8f4190d9837f29360709 100644 (file)
@@ -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
index a25e4bd09054004cc28897ceaca6d12fe8106f3b..46971f8d23fb97693a1b8f4190d9837f29360709 100644 (file)
@@ -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