Subject: Re: [Boost-build] Broken support for $ORIGIN in gcc.jam
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-02-20 06:05:58
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
in your shell -- it will come out empty. Now, I have no clue why shell
behaves like this.
I've applied a band-aid:
-- 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