[QBS] Export object files instead of static library

Joerg Bornemann joerg.bornemann at theqtcompany.com
Mon Jan 12 11:42:01 CET 2015

On 12-Jan-15 04:44, Andrey Anpilogov wrote:

> One of the things I have no idea how to do is "weak" function in static
> library.
> I have one static library that builds as Product. It has couple files
> with "weak" functions:
> files:
> - somelib.cpp
> - extracool.cpp
> - base.c
> - weakfuncs.c
> Let's say base.c and wealfuncs.c have "weak" functions.
> Which means I have to link the application:
> main.cpp.o path_to_lib/somelib.a path_to_lib/base.c.o
> path_to_lib/weakfuncs.c.o

I'm not sure that I understand your case.
Why do you have to pass the object files to the linker?
If you're talking about weak symbols in ELF object files then those 
symbols are marked as "weak" but still exist in a static library, right?



More information about the Qbs mailing list