mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
Pass -single_module option to gcc when linking dynamic libraries for use with bugpoint, so that we can bugpoint multiple .cp files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17102 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fcf4a42cdf
commit
792558898f
@ -409,6 +409,7 @@ int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType,
|
|||||||
#if defined(sparc) || defined(__sparc__) || defined(__sparcv9)
|
#if defined(sparc) || defined(__sparc__) || defined(__sparcv9)
|
||||||
"-G", // Compile a shared library, `-G' for Sparc
|
"-G", // Compile a shared library, `-G' for Sparc
|
||||||
#elif (defined(__POWERPC__) || defined(__ppc__)) && defined(__APPLE__)
|
#elif (defined(__POWERPC__) || defined(__ppc__)) && defined(__APPLE__)
|
||||||
|
"-single_module", // link all source files into a single module
|
||||||
"-dynamiclib", // `-dynamiclib' for MacOS X/PowerPC
|
"-dynamiclib", // `-dynamiclib' for MacOS X/PowerPC
|
||||||
"-fno-common", // allow global vars w/o initializers to live
|
"-fno-common", // allow global vars w/o initializers to live
|
||||||
"-undefined", // in data segment, rather than generating
|
"-undefined", // in data segment, rather than generating
|
||||||
|
@ -409,6 +409,7 @@ int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType,
|
|||||||
#if defined(sparc) || defined(__sparc__) || defined(__sparcv9)
|
#if defined(sparc) || defined(__sparc__) || defined(__sparcv9)
|
||||||
"-G", // Compile a shared library, `-G' for Sparc
|
"-G", // Compile a shared library, `-G' for Sparc
|
||||||
#elif (defined(__POWERPC__) || defined(__ppc__)) && defined(__APPLE__)
|
#elif (defined(__POWERPC__) || defined(__ppc__)) && defined(__APPLE__)
|
||||||
|
"-single_module", // link all source files into a single module
|
||||||
"-dynamiclib", // `-dynamiclib' for MacOS X/PowerPC
|
"-dynamiclib", // `-dynamiclib' for MacOS X/PowerPC
|
||||||
"-fno-common", // allow global vars w/o initializers to live
|
"-fno-common", // allow global vars w/o initializers to live
|
||||||
"-undefined", // in data segment, rather than generating
|
"-undefined", // in data segment, rather than generating
|
||||||
|
Loading…
Reference in New Issue
Block a user