summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-18 21:54:47 +0000
committerChris Lattner <sabre@nondot.org>2003-10-18 21:54:47 +0000
commit1f0f1621f0be4efdf4b2d20046f7d081863b817e (patch)
tree9064eda5101d969cced37a6f0e5f09cad24bdea9 /tools
parent634ec56986f5832804ce1fef6ddd66fac6103b8c (diff)
downloadllvm-1f0f1621f0be4efdf4b2d20046f7d081863b817e.tar.gz
llvm-1f0f1621f0be4efdf4b2d20046f7d081863b817e.tar.bz2
llvm-1f0f1621f0be4efdf4b2d20046f7d081863b817e.tar.xz
Without this option, the -run-llc mode does not work with shared objects at
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
Diffstat (limited to 'tools')
-rw-r--r--tools/bugpoint/ToolRunner.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp
index 654ce95baf..cd385d62a7 100644
--- a/tools/bugpoint/ToolRunner.cpp
+++ b/tools/bugpoint/ToolRunner.cpp
@@ -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;