mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-18 07:52:35 +00:00
Correctly build shared objects on MacOS X for debugging code generators
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14892 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6f14ad1ca0
commit
b3998ec5c5
@ -403,7 +403,11 @@ int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType,
|
||||
InputFile.c_str(), // Specify the input filename...
|
||||
#if defined(sparc) || defined(__sparc__) || defined(__sparcv9)
|
||||
"-G", // Compile a shared library, `-G' for Sparc
|
||||
#else
|
||||
#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
|
||||
#else
|
||||
"-shared", // `-shared' for Linux/X86, maybe others
|
||||
#endif
|
||||
"-o", OutputFile.c_str(), // Output to the right filename...
|
||||
|
@ -403,7 +403,11 @@ int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType,
|
||||
InputFile.c_str(), // Specify the input filename...
|
||||
#if defined(sparc) || defined(__sparc__) || defined(__sparcv9)
|
||||
"-G", // Compile a shared library, `-G' for Sparc
|
||||
#else
|
||||
#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
|
||||
#else
|
||||
"-shared", // `-shared' for Linux/X86, maybe others
|
||||
#endif
|
||||
"-o", OutputFile.c_str(), // Output to the right filename...
|
||||
|
Loading…
x
Reference in New Issue
Block a user