aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
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
parent06aa72344f3d961f1c6c6bbbdf59b415b329611d (diff)
downloadgdb-cdaeef2eb5f895b31ca8665b10712c4f3b64976e.zip
gdb-cdaeef2eb5f895b31ca8665b10712c4f3b64976e.tar.gz
gdb-cdaeef2eb5f895b31ca8665b10712c4f3b64976e.tar.bz2
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')
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/config/default.exp7
2 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 8c6dc9b..f98a3a2 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2003-05-30 H.J. Lu <hongjiu.lu@intel.com>
+
+ * config/default.exp: Load tmpdir/libpath.exp.
+ (gcc_ld_flag): Set from $libpath.
+
2003-05-27 Jason Thorpe <thorpej@wasabisystems.com>
* ld-elf/elf.exp: Use if_elf_format.
diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp
index e883e87..8131f94 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