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
This commit is contained in:
Chris Lattner 2004-07-19 06:00:17 +00:00
parent 8ea13c6233
commit 5fbf29ce53
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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