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.
This commit is contained in:
parent
24d3e51bf0
commit
fe22cbc418
|
@ -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>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue