1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 04:52:54 +02:00

Pass -single_module option to gcc when linking dynamic libraries for use with bugpoint, so that we can bugpoint multiple .cp files

llvm-svn: 17102
This commit is contained in:
Nate Begeman 2004-10-17 23:03:32 +00:00
parent 1c408f7319
commit 927c4cc3dc

View File

@ -409,6 +409,7 @@ int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType,
#if defined(sparc) || defined(__sparc__) || defined(__sparcv9)
"-G", // Compile a shared library, `-G' for Sparc
#elif (defined(__POWERPC__) || defined(__ppc__)) && defined(__APPLE__)
"-single_module", // link all source files into a single module
"-dynamiclib", // `-dynamiclib' for MacOS X/PowerPC
"-fno-common", // allow global vars w/o initializers to live
"-undefined", // in data segment, rather than generating