[llvm-commits] CVS: llvm/lib/Support/ToolRunner.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Nov 18 00:32:01 PST 2003
Changes in directory llvm/lib/Support:
ToolRunner.cpp updated: 1.11 -> 1.12
---
Log message:
Only use -Wl,-R. if HAVE_LINK_R.
---
Diffs of the changes: (+3 -0)
Index: llvm/lib/Support/ToolRunner.cpp
diff -u llvm/lib/Support/ToolRunner.cpp:1.11 llvm/lib/Support/ToolRunner.cpp:1.12
--- llvm/lib/Support/ToolRunner.cpp:1.11 Tue Nov 11 16:41:33 2003
+++ llvm/lib/Support/ToolRunner.cpp Tue Nov 18 00:31:17 2003
@@ -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 @@
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;
More information about the llvm-commits
mailing list