[Scons-users] Change order of parameters in linker call

Viktor Dick viktordick86 at gmail.com
Wed Aug 5 10:40:12 EDT 2015


Hi,
I just now noticed that on ubuntu 14.04, the linker seems to have
problems with the way it is called by scons. In particular,

g++ -o test test.o -L/usr/lib/x86_64-linux-gnu -lboost_system

works while

g++ -o test -L /usr/lib/x86_64-linux-gnu -lboost_system test.o

throws linker errors. Unfortunately, the second way is the one that is
chosen by SCons by default when using the Program() builder.

Is there a quick fix to tell scons to change the order of the parameters
or do I have to write a complete builder for this?

Regards,
Viktor

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20150805/bd0108aa/attachment.pgp>


More information about the Scons-users mailing list