From: Nate Begeman Date: Sun, 17 Oct 2004 23:03:32 +0000 (+0000) Subject: Pass -single_module option to gcc when linking dynamic libraries for use with bugpoin... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=792558898fc8d79fd208a0b0bf8248b62139ff03;p=oota-llvm.git 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 --- diff --git a/lib/Support/ToolRunner.cpp b/lib/Support/ToolRunner.cpp index 3dc98451de5..1584db4ed32 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 3dc98451de5..1584db4ed32 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