Subject: Re: [Boost-build] Broken support for $ORIGIN in gcc.jam
From: Matthew Chambers (matthew.chambers_at_[hidden])
Date: 2010-02-22 11:18:17
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:
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. :)
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