64 bit system libs

Anthony Shipman als at iinet.net.au
Sun Jul 5 14:45:11 PDT 2015


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

    



More information about the pkg-config mailing list