From e6961d10d80b83fe946759acfa722cdc2e425bc4 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 15 Mar 2011 23:34:30 +0000 Subject: ld: vers19 test: add -rpath-link Using -Wl,-rpath,. isn't sufficient for cross-linkers to locate the necessary libraries. So throw in -Wl,-rpath-link,. to make it work. Signed-off-by: Mike Frysinger --- ld/testsuite/ChangeLog | 4 ++++ ld/testsuite/ld-elfvers/vers.exp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'ld') diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 1e145cd..dafac0a 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2011-03-15 Mike Frysinger + + * ld-elfvers/vers.exp (vers19): Add -Wl,-rpath-link,. to linker flags. + 2011-03-14 Richard Sandiford * ld-arm/ifunc-1.s, ld-arm/ifunc-1.dd, ld-arm/ifunc-1.gd, diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp index d43c12e..d1c2228 100644 --- a/ld/testsuite/ld-elfvers/vers.exp +++ b/ld/testsuite/ld-elfvers/vers.exp @@ -893,7 +893,7 @@ build_exec "vers16" vers16.c vers16 "" vers16a.so "" vers16.dsym "" # Test a weak versioned symbol. build_vers_lib_pic "vers17" vers17.c vers17 "" vers17.map vers17.ver vers17.dsym "" build_vers_lib_pic "vers18" vers18.c vers18 vers17.so vers18.map vers18.ver vers18.dsym vers18.sym -build_exec "vers19" vers19.c vers19 "-Wl,-rpath,." vers18.so vers19.ver vers19.dsym "" +build_exec "vers19" vers19.c vers19 "-Wl,-rpath,. -Wl,-rpath-link,." vers18.so vers19.ver vers19.dsym "" build_vers_lib_no_pic "vers20a" vers20.c vers20a "" vers20.map vers20a.ver vers20.dsym "" exec cp $tmpdir/vers20a.so $tmpdir/vers20b.so -- cgit v1.1