[Interest] link error (and probably a dumb question)

René J. V. Bertin rjvbertin at gmail.com
Thu Sep 17 18:50:09 CEST 2015


Thiago Macieira wrote:


> The files do contain the -L setting but pkg-config should strip them out.
> 
> $ grep Libs: /usr/lib64/pkgconfig/{dbus-1,glib-2.0}.pc
> /usr/lib64/pkgconfig/dbus-1.pc:Libs: -L${libdir} -ldbus-1
> /usr/lib64/pkgconfig/glib-2.0.pc:Libs: -L${libdir} -lglib-2.0
> 
> $ pkg-config --libs dbus-1 glib-2.0
> -ldbus-1 -lglib-2.0

> 
> Yours didn't.

It does, but not when I invoke it like this
$ env PKG_CONFIG_PATH=/usr/lib64/pkgconfig pkg-config --libs dbus-1

I'd be curious to know if your pkg-config still strips the arch-specific path 
out of its response. 

> Those variables are for qmake's internal use, it doesn't apply to pkg-config.

I know it doesn't apply to pkg-config, but does qmake have any more business 
with those paths than pkg-config has?

R




More information about the Interest mailing list