summaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-08-08 14:13:46 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-08-08 14:16:02 -0700
commitfe22cbc418b35ed6ea3252a204bd351f8c201e0b (patch)
tree1a2756d6a7db83342f9a907d084b5a3be503076b /ld
parent24d3e51bf0612c6cf5e9a824b982e7ed38e741c8 (diff)
downloadbinutils-gdb-fe22cbc418b35ed6ea3252a204bd351f8c201e0b.tar.gz
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.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog7
-rwxr-xr-xld/configure2
-rw-r--r--ld/configure.ac2
3 files changed, 9 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 645c0fe636c..65ddf6b145a 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 de709d3a82c..f1d1f0e9e86 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 99d127bd11b..9bada132089 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