diff options
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | ld/testsuite/config/default.exp | 7 |
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 |