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

Gary Oberbrunner garyo at oberbrunner.com
Wed Aug 5 11:03:51 EDT 2015


You should be able to modify LINKCOM (and maybe SHLINKCOM) to reorder the
link line.

On Wed, Aug 5, 2015 at 10:40 AM, Viktor Dick <viktordick86 at gmail.com> wrote:

>
> 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
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>


-- 
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20150805/58e6a8cd/attachment.html>


More information about the Scons-users mailing list