diff options
| author | Brian Gaeke <gaeke@uiuc.edu> | 2003-11-18 06:31:17 +0000 |
|---|---|---|
| committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-11-18 06:31:17 +0000 |
| commit | 921440c309fa3cc5f39b95d9acc3e331d1c61e6f (patch) | |
| tree | 68980e5e919f59a7791d9bda134820a706685fa5 /llvm/lib/Support | |
| parent | 37d449d87065114119a89b6db78fef00792a219c (diff) | |
| download | bcm5719-llvm-921440c309fa3cc5f39b95d9acc3e331d1c61e6f.tar.gz bcm5719-llvm-921440c309fa3cc5f39b95d9acc3e331d1c61e6f.zip | |
Only use -Wl,-R. if HAVE_LINK_R.
llvm-svn: 10066
Diffstat (limited to 'llvm/lib/Support')
| -rw-r--r-- | llvm/lib/Support/ToolRunner.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Support/ToolRunner.cpp b/llvm/lib/Support/ToolRunner.cpp index 50a9ad21c85..0f2e13e20f1 100644 --- a/llvm/lib/Support/ToolRunner.cpp +++ b/llvm/lib/Support/ToolRunner.cpp @@ -13,6 +13,7 @@ #define DEBUG_TYPE "toolrunner" #include "llvm/Support/ToolRunner.h" +#include "Config/config.h" // for HAVE_LINK_R #include "Support/Debug.h" #include "Support/FileUtilities.h" #include <iostream> @@ -299,7 +300,9 @@ 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... +#if defined (HAVE_LINK_R) GCCArgs.push_back("-Wl,-R."); // Search this dir for .so files +#endif GCCArgs.push_back(0); // NULL terminator std::cout << "<gcc>" << std::flush; |

