diff options
author | Chris Lattner <sabre@nondot.org> | 2004-07-19 06:00:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-07-19 06:00:17 +0000 |
commit | 874ffdd5928e2743871229f430d1c4d945ccb3db (patch) | |
tree | 36f3d1e6d93dffa12fecfd308f80681fd5714c3f /llvm/lib | |
parent | a618e13c8390040521e3bd55cfd072d3afd3f7d0 (diff) | |
download | bcm5719-llvm-874ffdd5928e2743871229f430d1c4d945ccb3db.tar.gz bcm5719-llvm-874ffdd5928e2743871229f430d1c4d945ccb3db.zip |
Fix bugpoint miscompilation support on OS/X
Patch contributed by the fabulous Nate Begeman.
llvm-svn: 14994
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Support/ToolRunner.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Support/ToolRunner.cpp b/llvm/lib/Support/ToolRunner.cpp index 73a0c314186..71d42161629 100644 --- a/llvm/lib/Support/ToolRunner.cpp +++ b/llvm/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 |