This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] ld: Replace --rpath with -Wl,--rpath
- From: H.J.Lu <hjl at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 8 Aug 2017 21:16:31 -0000
- Subject: [binutils-gdb] ld: Replace --rpath with -Wl,--rpath
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fe22cbc418b35ed6ea3252a204bd351f8c201e0b
commit fe22cbc418b35ed6ea3252a204bd351f8c201e0b
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Aug 8 14:13:46 2017 -0700
ld: Replace --rpath with -Wl,--rpath
"--rpath ../bfd/.libs ../bfd/.libs/libbfd.so" isn't a valid compiler
command-line option. We should use -Wl,--rpath instead of --rpath.
PR ld/21923
* configure.ac (TESTBFDLIB): Replace --rpath with -Wl,--rpath
for --disable-static.
* configure: Regenerated.
Diff:
---
ld/ChangeLog | 7 +++++++
ld/configure | 2 +-
ld/configure.ac | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 645c0fe..65ddf6b 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,10 @@
+2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/21923
+ * configure.ac (TESTBFDLIB): Replace --rpath with -Wl,--rpath
+ for --disable-static.
+ * configure: Regenerated.
+
2017-08-08 Romain Geissler <romain.geissler@gmail.com>
Alan Modra <amodra@gmail.com>
diff --git a/ld/configure b/ld/configure
index de709d3..f1d1f0e 100755
--- a/ld/configure
+++ b/ld/configure
@@ -17298,7 +17298,7 @@ EMULATION_LIBPATH=$all_libpath
if test x${enable_static} = xno; then
- TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
+ TESTBFDLIB="-Wl,--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
else
TESTBFDLIB="../bfd/.libs/libbfd.a"
fi
diff --git a/ld/configure.ac b/ld/configure.ac
index 99d127b..9bada13 100644
--- a/ld/configure.ac
+++ b/ld/configure.ac
@@ -470,7 +470,7 @@ EMULATION_LIBPATH=$all_libpath
AC_SUBST(EMULATION_LIBPATH)
if test x${enable_static} = xno; then
- TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
+ TESTBFDLIB="-Wl,--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
else
TESTBFDLIB="../bfd/.libs/libbfd.a"
fi