Re: [QBS] Export object files instead of static library

2015-01-13 Thread Joerg Bornemann
On 12-Jan-15 11:47, Andrey Anpilogov wrote: > > "those symbols are marked as "weak" but still exist in a static > library, right?" > They do. But they will not be linked because of priority. > So I have program.c with: > void "weak" foo() {}; > > and target.c: > void foo() {do_something();} > > If

Re: [QBS] Export object files instead of static library

2015-01-12 Thread Andrey Anpilogov
> "those symbols are marked as "weak" but still exist in a static library, right?" They do. But they will not be linked because of priority. So I have program.c with: void "weak" foo() {}; and target.c: void foo() {do_something();} If I link them together into static library and link with ELF fil

Re: [QBS] Export object files instead of static library

2015-01-12 Thread Joerg Bornemann
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 >

[QBS] Export object files instead of static library

2015-01-11 Thread Andrey Anpilogov
Hi, 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. Whi