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 /lib/Support/ToolRunner.cpp | |
parent | fcf4a42cdf5d34b7761f34e3cb978b4cef93e2cb (diff) |
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
Diffstat (limited to 'lib/Support/ToolRunner.cpp')
-rw-r--r-- | lib/Support/ToolRunner.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Support/ToolRunner.cpp b/lib/Support/ToolRunner.cpp index 3dc98451de..1584db4ed3 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 |