aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-19 06:00:17 +0000
committerChris Lattner <sabre@nondot.org>2004-07-19 06:00:17 +0000
commit5fbf29ce5322d619fec4a42d6f821ed6134913ee (patch)
treec57a6688d0c45c75c7e9f0649737742aed20628c /lib/Support
parent8ea13c6233d7dded98d933b435f2727a38149a70 (diff)
downloadexternal_llvm-5fbf29ce5322d619fec4a42d6f821ed6134913ee.zip
external_llvm-5fbf29ce5322d619fec4a42d6f821ed6134913ee.tar.gz
external_llvm-5fbf29ce5322d619fec4a42d6f821ed6134913ee.tar.bz2
Fix bugpoint miscompilation support on OS/X
Patch contributed by the fabulous Nate Begeman. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14994 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/ToolRunner.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Support/ToolRunner.cpp b/lib/Support/ToolRunner.cpp
index 73a0c31..71d4216 100644
--- a/lib/Support/ToolRunner.cpp
+++ b/lib/Support/ToolRunner.cpp
@@ -406,7 +406,9 @@ int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType,
#elif (defined(__POWERPC__) || defined(__ppc__)) && defined(__APPLE__)
"-dynamiclib", // `-dynamiclib' for MacOS X/PowerPC
"-fno-common", // allow global vars w/o initializers to live
- // in data segment, rather than generating blocks
+ // in data segment, rather than generating
+ "dynamic_lookup", // blocks. dynamic_lookup requires that you set
+ // MACOSX_DEPLOYMENT_TARGET=10.3 in your env.
#else
"-shared", // `-shared' for Linux/X86, maybe others
#endif