aboutsummaryrefslogtreecommitdiff
path: root/ld/configure
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/configure
parent24d3e51bf0612c6cf5e9a824b982e7ed38e741c8 (diff)
downloadgdb-fe22cbc418b35ed6ea3252a204bd351f8c201e0b.zip
gdb-fe22cbc418b35ed6ea3252a204bd351f8c201e0b.tar.gz
gdb-fe22cbc418b35ed6ea3252a204bd351f8c201e0b.tar.bz2
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/configure')
-rwxr-xr-xld/configure2
1 files changed, 1 insertions, 1 deletions
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