aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Support/ToolRunner.cpp2
-rw-r--r--tools/bugpoint/ToolRunner.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/ToolRunner.cpp b/lib/Support/ToolRunner.cpp
index 46971f8d23..2f6f2f43a5 100644
--- a/lib/Support/ToolRunner.cpp
+++ b/lib/Support/ToolRunner.cpp
@@ -451,7 +451,7 @@ int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType,
"-shared", // `-shared' for Linux/X86, maybe others
#endif
-#if defined(__ia64__)
+#if defined(__ia64__) || defined(__alpha__)
"-fPIC", // IA64 requires shared objs to contain PIC
#endif
"-o", OutputFile.c_str(), // Output to the right filename...
diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp
index 46971f8d23..2f6f2f43a5 100644
--- a/tools/bugpoint/ToolRunner.cpp
+++ b/tools/bugpoint/ToolRunner.cpp
@@ -451,7 +451,7 @@ int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType,
"-shared", // `-shared' for Linux/X86, maybe others
#endif
-#if defined(__ia64__)
+#if defined(__ia64__) || defined(__alpha__)
"-fPIC", // IA64 requires shared objs to contain PIC
#endif
"-o", OutputFile.c_str(), // Output to the right filename...