From 0132ae4117dfc7a7a47836690e35e878953b618d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 18 Oct 2003 21:54:47 +0000 Subject: [PATCH] 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 --- llvm/lib/Support/ToolRunner.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Support/ToolRunner.cpp b/llvm/lib/Support/ToolRunner.cpp index 654ce95bafa4..cd385d62a7e9 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 << "" << std::flush; -- GitLab