]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld: Replace --rpath with -Wl,--rpath,
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 8 Aug 2017 21:13:46 +0000 (14:13 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 13 Aug 2017 12:59:30 +0000 (05:59 -0700)
"--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.

(cherry picked from commit fe22cbc418b35ed6ea3252a204bd351f8c201e0b and
 9165f4548be8612161fb90cfad9bd0cc6a752c90)

ld/ChangeLog
ld/configure
ld/configure.ac

index 61458ebe06bb216dec259ad8b113e31f747576ab..8b656e66ebad5bb5cb331e4213ba24fd3432ac72 100644 (file)
@@ -1,3 +1,10 @@
+2017-08-13  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-13  H.J. Lu  <hongjiu.lu@intel.com>
 
        * testsuite/ld-i386/i386.exp: Run pr21884-nacl.
index 7b66a4f77b854318f86c0f58b94a6c1b1343835a..20fb84d036cf8367c8a64f81a814d72812d62aa6 100755 (executable)
@@ -17255,7 +17255,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
index 34315e67286c47f00470d217e906f6e4945c7229..6f25d2809e171e090d77a0daa3bd77857fd1c9a8 100644 (file)
@@ -436,7 +436,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