[QBS] Enclosing a library product in special linker flags
richard at weickelt.de
Thu Nov 6 15:53:18 CET 2014
I have a project with an application and a couple of static libary products
as dependencies. When it comes to linking, I need all symbols of one library
to be linked into the executable. This can be achieved with the
--whole-archive flag. The following line applies this flag to only one library:
g++ ... lib1.a lib2.a -Wl--whole-archive lib3.a -Wl,--no-whole-archive ...
Has anybody an idea, how to create such a pattern with qbs?
More information about the Qbs