[Scons-users] How to force flags order when linking static libraries

Davide Coppola vivaladav at gmail.com
Wed Mar 12 12:23:48 EDT 2014



>

> yes, you should use LINKFLAGS for specifying linker flags only, like the

> "-Wl,--no-undefined". For the actual libraries there is the LIBS

> variable instead. Its values get appended to the compiler command after

> your object file, so this should solve your problem:

> env.Append(LINKFLAGS=['-Wl,--no-undefined'])

> env.Append(LIBS=['SDL2', 'pthread', 'm', 'dl', 'ts', 'pthread', 'rt'])



Silly me... it's so easy when you know how to do things!

Thanks a lot Dirk, that worked just fine.

--
Davide Coppola

*website:* http://www.davidecoppola.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20140312/221162cb/attachment.htm


More information about the Scons-users mailing list