diff options
author | Nate Begeman <natebegeman@mac.com> | 2004-10-17 23:03:32 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2004-10-17 23:03:32 +0000 |
commit | 792558898fc8d79fd208a0b0bf8248b62139ff03 (patch) | |
tree | 001378e72f5e135a521e8e34176deaaf510d596e | |
parent | fcf4a42cdf5d34b7761f34e3cb978b4cef93e2cb (diff) | |
download | external_llvm-792558898fc8d79fd208a0b0bf8248b62139ff03.zip external_llvm-792558898fc8d79fd208a0b0bf8248b62139ff03.tar.gz external_llvm-792558898fc8d79fd208a0b0bf8248b62139ff03.tar.bz2 |
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
-rw-r--r-- | lib/Support/ToolRunner.cpp | 1 | ||||
-rw-r--r-- | tools/bugpoint/ToolRunner.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/Support/ToolRunner.cpp b/lib/Support/ToolRunner.cpp index 3dc9845..1584db4 100644 --- a/lib/Support/ToolRunner.cpp +++ b/lib/Support/ToolRunner.cpp @@ -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 diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp index 3dc9845..1584db4 100644 --- a/tools/bugpoint/ToolRunner.cpp +++ b/tools/bugpoint/ToolRunner.cpp @@ -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 |