Without this option, the -run-llc mode does not work with shared objects at
authorChris Lattner <sabre@nondot.org>
Sat, 18 Oct 2003 21:54:47 +0000 (21:54 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 18 Oct 2003 21:54:47 +0000 (21:54 +0000)
all, making it pointless for use with the code generator debugger.  With it,
it works like a charm.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9245 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 654ce95bafa4a90d98de72f848a7ddbea6c7c905..cd385d62a7e9200af8408ad1cd90d6c539984bc6 100644 (file)
@@ -289,6 +289,7 @@ int GCC::ExecuteProgram(const std::string &ProgramFile,
   GCCArgs.push_back(OutputBinary.c_str()); // Output to the right file...
   GCCArgs.push_back("-lm");                // Hard-code the math library...
   GCCArgs.push_back("-O2");                // Optimize the program a bit...
+  GCCArgs.push_back("-Wl,-R.");            // Search this dir for .so files
   GCCArgs.push_back(0);                    // NULL terminator
 
   std::cout << "<gcc>" << std::flush;
index 654ce95bafa4a90d98de72f848a7ddbea6c7c905..cd385d62a7e9200af8408ad1cd90d6c539984bc6 100644 (file)
@@ -289,6 +289,7 @@ int GCC::ExecuteProgram(const std::string &ProgramFile,
   GCCArgs.push_back(OutputBinary.c_str()); // Output to the right file...
   GCCArgs.push_back("-lm");                // Hard-code the math library...
   GCCArgs.push_back("-O2");                // Optimize the program a bit...
+  GCCArgs.push_back("-Wl,-R.");            // Search this dir for .so files
   GCCArgs.push_back(0);                    // NULL terminator
 
   std::cout << "<gcc>" << std::flush;