mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
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:
parent
8ea13c6233
commit
5fbf29ce53
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user