This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Alternate character for dollar sign in $ORIGIN?
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Szabolcs Nagy <Szabolcs dot Nagy at arm dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>, nd <nd at arm dot com>
- Date: Mon, 3 Jun 2019 17:06:40 +0000
- Subject: Re: Alternate character for dollar sign in $ORIGIN?
- References: <CAH8yC8nMzTeAWUVa6c=Y504tXZUbdq0aMJmVXbv29+L9Sh_y=g@mail.gmail.com> <91c091fb-2544-e593-1758-ec53bf1e6ddd@arm.com>
On Mon, 3 Jun 2019, Szabolcs Nagy wrote:
> On 03/06/2019 09:28, Jeffrey Walton wrote:
> > Hi Everyone,
> >
> > I'm having trouble configuring Autotools projects with
> > -Wl,-rpath,$ORIGIN/../lib. Everything I've tried is replaced either by
> > the shell or the makefile.
>
> '-Wl,-rpath,$$ORIGIN/../lib'
>
> should work from a makefile.
Until there are multiple levels of shell and make interpretation from
being passed to subdirectory make. You end up needing something like
export LDFLAGS='-Wl,-rpath,'\''\\\$$\$$\\\$$\$$ORIGIN'\''/../lib'
for configuring GDB at top-level to get the correct RPATH setting in the
actual GDB binaries. (I don't know if passing LDFLAGS on the configure
command line needs different levels of quoting from passing it in the
environment.)
--
Joseph S. Myers
joseph@codesourcery.com