64 bit system libs

Anthony Shipman als at iinet.net.au
Mon Jul 6 14:45:43 PDT 2015


On Mon, 2015-07-06 at 08:39 -0700, Dan Nicholson wrote:
> On Sun, Jul 5, 2015 at 2:45 PM, Anthony Shipman <als at iinet.net.au> wrote:
> > On Sun, 2015-07-05 at 22:06 +0200, Enrico Weigelt, metux IT consult
> > wrote:
> >> On 05.07.2015 13:16, Anthony Shipman wrote:
> >> > On my 64-bit openSuse system I get
> >> >
> >> > $ pkg-config --static --libs QtMultimedia
> >> > -L/usr/lib64 -L/usr/X11R6/lib -L/usr/lib64 -L/usr/X11R6/lib -L/usr/lib64
> >> > -lQtMultimedia -lQtGui -lQtCore -lpthread -lasound -lQtGui -lQtCore
> >> > -lpthread -lgthread-2.0 -pthread -lglib-2.0 -lpng -lz -lfreetype
> >> > -lgobject-2.0 -lglib-2.0 -lSM -lICE -lXi -lXrender -lXrandr -lXfixes
> >> > -lXcursor -lXinerama -lfontconfig -lfreetype -lXext -lX11 -lm -lQtCore
> >> > -lpthread -lz -lm -ldl -lgthread-2.0 -pthread -lglib-2.0 -lrt
> >> >
> >> > Should the lib64 system libs be filtered out?
> >
> > More:
> >    pkg-config --static --libs QtCore
> > produces
> >     -L/usr/lib64 -lQtCore -lpthread -lz -lm -ldl -lgthread-2.0 -pthread
> > -lglib-2.0 -lrt
> >
> > But the only QtCore library is in /usr/lib64/
> >
> > In the dynamic case
> >     pkg-config --libs QtCore
> > produces
> >     -lQtCore
> >
> >
> > and
> >     PKG_CONFIG_ALLOW_SYSTEM_LIBS=yes pkg-config --libs QtCore
> > produces
> >     -L/usr/lib64 -lQtCore
> >
> >
> > Also you can see that there are duplicate libraries in the first list
> > for QtMultimedia e.g. -lz
> 
> Interesting. Seems like --static is broken. What version of pkg-config
> do you have? Any chance you can run the version from git master? It's
> pretty straightforward to build it locally and run it directly from
> the build directory. It's possible this is fixed with
> http://cgit.freedesktop.org/pkg-config/commit/?id=ce1a2416ce0f0bd9a8a8a5caaf7dad20cda4d47d.

I have (on openSuse 13.2)

Name        : pkg-config
Version     : 0.28
Release     : 7.1.2
Architecture: x86_64
Source RPM  : pkg-config-0.28-7.1.2.src.rpm
Build Date  : Thu 25 Sep 2014 16:37:13 AEST

The version I built from a git clone behaves correctly

> ./pkg-config --static --libs QtCore
-lQtCore -lpthread -lz -lm -ldl -lgthread-2.0 -pthread -lglib-2.0 -lrt






More information about the pkg-config mailing list