summaryrefslogtreecommitdiff
path: root/ld/testsuite/config
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2003-05-30 13:23:25 +0000
committerH.J. Lu <hjl.tools@gmail.com>2003-05-30 13:23:25 +0000
commitcdaeef2eb5f895b31ca8665b10712c4f3b64976e (patch)
treed0d19069c3bbd01de2a6b23f4d295becde941bd6 /ld/testsuite/config
parent06aa72344f3d961f1c6c6bbbdf59b415b329611d (diff)
downloadbinutils-gdb-cdaeef2eb5f895b31ca8665b10712c4f3b64976e.tar.gz
ld/
2003-05-30 H.J. Lu <hongjiu.lu@intel.com> * genscripts.sh: Create tmpdir/libpath.exp. ld/testsuite/ 2003-05-30 H.J. Lu <hongjiu.lu@intel.com> * config/default.exp: Load tmpdir/libpath.exp. (gcc_ld_flag): Set from $libpath.
Diffstat (limited to 'ld/testsuite/config')
-rw-r--r--ld/testsuite/config/default.exp7
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp
index e883e875c42..8131f944889 100644
--- a/ld/testsuite/config/default.exp
+++ b/ld/testsuite/config/default.exp
@@ -69,6 +69,13 @@ if {![file isdirectory tmpdir/ld]} then {
}
set gcc_ld_flag "-B[pwd]/tmpdir/ld/"
+# load the linker path
+load_lib tmpdir/libpath.exp
+
+foreach dir $libpath {
+ set gcc_ld_flag "$gcc_ld_flag -L$dir"
+}
+
# The mips64-*-linux-gnu compiler defaults to the N32 ABI after
# installed, but to the O32 ABI in the build tree, because of some
# specs-file hacks. Make sure we use an ABI that is compatible with