[Qbs] Linking static lib with PkgConfig and --as-needed
christian.kandeler at qt.io
Mon Jan 16 11:54:55 CET 2017
On 01/15/2017 02:42 AM, dizygotheca wrote:
> I'm struggling to link a static lib that depends on an external library.
> Using Qbs 1.7.0 with Gcc 5.4.0 on Linux.
> It seems to me that PkgConfigProbe should strip "-l" out of the libs so
> that cpp.staticLibraries can be used. Disabling the as-needed shouldn't
> be necessary.
As you have noticed, PkgConfigProbe.libs simply stores the raw entries
of the --libs output. I agree that it seems to make sense to provide
higher-level output as well. Can you please file a bug report?
More information about the Qbs