[Scons-users] Passing $ORIGIN through Variables from the command line?

Dirk Bächle tshortik at gmx.de
Wed Jan 21 18:35:36 EST 2015


On 22.01.2015 00:29, Dirk Bächle wrote:
> Hi Andrew,
>
> On 22.01.2015 00:13, Bill Deegan wrote:
>> Try: ${ORIGIN} ?
>>
>> On Wed, Jan 21, 2015 at 2:16 PM, Andrew C. Morrow <andrew.c.morrow at gmail.com <mailto:andrew.c.morrow at gmail.com>> wrote:
>>
>>
>>     Given the following minimal SConstruct:
>>
>>     [...]
>>
>>
>>     I can't see how to get env['SHLINKFLAGS'] to contain the string -Wl,-rpath=$ORIGIN/../lib from the command line:
>>
>
> my first try would be to use the intended way of specifying an "rpath" by setting the environment variable RPATH, and then let the
> gnulink Tool/Builder do the rest of the work. Check out Appendix A "Construction Variables" in the UserGuide (
> http://www.scons.org/doc/production/HTML/scons-user.html ) and search for the keyword RPATH...
>

...and for the $ORIGIN part there is a Wiki page here:

   http://www.scons.org/wiki/UsingOrigin

Dirk




More information about the Scons-users mailing list