Boost logo

Boost-Build :

Subject: Re: [Boost-build] Broken support for $ORIGIN in gcc.jam
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-02-23 02:35:30


On Monday 22 February 2010 19:18:17 Matthew Chambers wrote:

> On 2/20/2010 5:05 AM, Vladimir Prus wrote:
> > On Saturday 20 February 2010 01:29:54 Matthew Chambers wrote:
> >
> >
> >> Hi Volodya,
> >>
> >> As we discussed earlier on IRC, I need $ORIGIN to make my link=shared
> >> binaries portable. But<dll-path>'$(ORIGIN)' isn't working because the
> >> gcc toolset adds double quotes which breaks ld's understanding of the
> >> keyword. So instead of:
> >> -Wl,-R -Wl,'$ORIGIN'
> >> I get:
> >> -Wl,-R -Wl,"'$ORIGIN'"
> >>
> > Technically, it does not breaks ld's understanding. Try typing
> >
> > echo "'$ORIGIN'"
> >
> > in your shell -- it will come out empty. Now, I have no clue why shell
> > behaves like this.
> >
> > I've applied a band-aid:
> >
> > https://svn.boost.org/trac/boost/changeset/59765
> >
>
> The band-aid works. <dll-path>'$ORIGIN' now works as expected. You might
> want to take out the "echo "Yeah"" statement you left in there though. :)

Yeah. Fixed that ;-)

Thanks,

--
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build: http://boost.org/boost-build2

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk