From ab08df96995ae2845fde3290b77f73f9d18a274c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 2 Aug 2005 22:07:38 +0000 Subject: Pass -export-dynamic to gcc when compiling with -native and the link is performed with -export-dynamic (aka. -disable-internalize). Patch by Nicholas Riley! llvm-svn: 22601 --- llvm/tools/gccld/gccld.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/tools/gccld/gccld.cpp') diff --git a/llvm/tools/gccld/gccld.cpp b/llvm/tools/gccld/gccld.cpp index 2ae13aa7d4e..5c0fbb90d85 100644 --- a/llvm/tools/gccld/gccld.cpp +++ b/llvm/tools/gccld/gccld.cpp @@ -308,8 +308,8 @@ int main(int argc, char **argv, char **envp ) { Verbose); if (Verbose) std::cout << "Generating Native Code\n"; GenerateNative(OutputFilename, AssemblyFile.toString(), - LibPaths, Libraries, gcc, envp, LinkAsLibrary, RPath, - SOName, Verbose); + LibPaths, Libraries, gcc, envp, LinkAsLibrary, + NoInternalize, RPath, SOName, Verbose); if (!SaveTemps) { // Remove the assembly language file. @@ -340,8 +340,8 @@ int main(int argc, char **argv, char **envp ) { GenerateCFile(CFile.toString(), RealBytecodeOutput, llc, Verbose); if (Verbose) std::cout << "Generating Native Code\n"; GenerateNative(OutputFilename, CFile.toString(), - LibPaths, Libraries, gcc, envp, LinkAsLibrary, RPath, - SOName, Verbose); + LibPaths, Libraries, gcc, envp, LinkAsLibrary, + NoInternalize, RPath, SOName, Verbose); if (!SaveTemps) { // Remove the assembly language file. -- cgit v1.2.3