summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
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
commit0132ae4117dfc7a7a47836690e35e878953b618d (patch)
tree7dfe582fef0b5d61b3f47daafbd898ed772a05dd /llvm/lib/Support
parentf021940b49f97d41803468de938e3e36bfc4221d (diff)
downloadbcm5719-llvm-0132ae4117dfc7a7a47836690e35e878953b618d.tar.gz
bcm5719-llvm-0132ae4117dfc7a7a47836690e35e878953b618d.zip
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. llvm-svn: 9245
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/ToolRunner.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/ToolRunner.cpp b/llvm/lib/Support/ToolRunner.cpp
index 654ce95bafa..cd385d62a7e 100644
--- a/llvm/lib/Support/ToolRunner.cpp
+++ b/llvm/lib/Support/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;
OpenPOWER on IntegriCloud