mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Pass -export-dynamic to gcc when compiling with -native and the link is
performed with -export-dynamic (aka. -disable-internalize). Patch by Nicholas Riley! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22601 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user