This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [committed, PATCH] PR ld/21923: Replace --rpath with -Wl,--rpath
- From: Alan Modra <amodra at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 9 Aug 2017 08:09:22 +0930
- Subject: Re: [committed, PATCH] PR ld/21923: Replace --rpath with -Wl,--rpath
- Authentication-results: sourceware.org; auth=none
- References: <20170808211705.GA3961@gmail.com>
On Tue, Aug 08, 2017 at 02:17:05PM -0700, H.J. Lu wrote:
> --- 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
Does that actually work? I thought you needed to write -Wl options
without the spaces..
TESTBFDLIB="-Wl,--rpath,../bfd/.libs,../bfd/.libs/libbfd.so"
--
Alan Modra
Australia Development Lab, IBM