Pass -single_module option to gcc when linking dynamic libraries for use with bugpoin...
authorNate Begeman <natebegeman@mac.com>
Sun, 17 Oct 2004 23:03:32 +0000 (23:03 +0000)
committerNate Begeman <natebegeman@mac.com>
Sun, 17 Oct 2004 23:03:32 +0000 (23:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17102 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/ToolRunner.cpp
tools/bugpoint/ToolRunner.cpp

index 3dc98451de59d24e4c6e90a89893538d1a75c5e3..1584db4ed32b9e0f711158ab122cc96b85888b65 100644 (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
index 3dc98451de59d24e4c6e90a89893538d1a75c5e3..1584db4ed32b9e0f711158ab122cc96b85888b65 100644 (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