public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] ld: vers19 test: add -rpath-link
@ 2010-12-09 21:05 Mike Frysinger
  2011-03-12  7:38 ` Mike Frysinger
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2010-12-09 21:05 UTC (permalink / raw)
  To: binutils; +Cc: toolchain-devel

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 <vapier@gentoo.org>

2010-12-09  Mike Frysinger  <vapier@gentoo.org>

	* ld-elfvers/vers.exp (vers19): Add -Wl,-rpath-link,. to linker flags.
---
 ld/testsuite/ld-elfvers/vers.exp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp
index 1baa53b..98c440b 100644
--- a/ld/testsuite/ld-elfvers/vers.exp
+++ b/ld/testsuite/ld-elfvers/vers.exp
@@ -895,7 +895,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
-- 
1.7.3.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ld: vers19 test: add -rpath-link
  2010-12-09 21:05 [PATCH] ld: vers19 test: add -rpath-link Mike Frysinger
@ 2011-03-12  7:38 ` Mike Frysinger
  2011-03-15 23:17   ` Alan Modra
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2011-03-12  7:38 UTC (permalink / raw)
  To: binutils; +Cc: toolchain-devel

[-- Attachment #1: Type: Text/Plain, Size: 219 bytes --]

On Thursday, December 09, 2010 16:04:51 Mike Frysinger wrote:
> Using -Wl,-rpath,. isn't sufficient for cross-linkers to locate the
> necessary libraries.  So throw in -Wl,-rpath-link,. to make it work.

ping ...
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ld: vers19 test: add -rpath-link
  2011-03-12  7:38 ` Mike Frysinger
@ 2011-03-15 23:17   ` Alan Modra
  0 siblings, 0 replies; 3+ messages in thread
From: Alan Modra @ 2011-03-15 23:17 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: binutils, toolchain-devel

On Sat, Mar 12, 2011 at 02:38:21AM -0500, Mike Frysinger wrote:
> On Thursday, December 09, 2010 16:04:51 Mike Frysinger wrote:
> > Using -Wl,-rpath,. isn't sufficient for cross-linkers to locate the
> > necessary libraries.  So throw in -Wl,-rpath-link,. to make it work.
> 
> ping ...

OK.

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-15 23:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-09 21:05 [PATCH] ld: vers19 test: add -rpath-link Mike Frysinger
2011-03-12  7:38 ` Mike Frysinger
2011-03-15 23:17   ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).