Boost logo

Boost-Build :

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

        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:


Vladimir Prus

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at