|
Boost-Build : |
Subject: Re: [Boost-build] Broken support for $ORIGIN in gcc.jam
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2010-02-19 17:39:28
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'"
>
> The double quoting is hard-coded at gcc.jam:798. My idea for a fix is
> some shell scripting in that action block, but perhaps there is a better
> way.
For years now, I've used:
<target-os>linux,<toolset>gcc:<linkflags>-Wl,-rpath,'${ORIGIN}'
HTH
-- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org (msn) - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim,yahoo,skype,efnet,gmail
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