64 bit system libs

Dan Nicholson nicholson at endlessm.com
Mon Jul 6 08:39:27 PDT 2015


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.


More information about the pkg-config mailing list