[Fwd: pkg-config support for biarch]

Steven Munroe munroesj at linux.vnet.ibm.com
Tue Feb 26 16:13:21 PST 2008


More information of this pkg-config bug. It is seems to be distro
dependent. The previous note was for the SuSE Linux Enterprise Server
Distro. The problem does not occur on OpenSuse-10.3 because the Gnome
libraries are in different directories.

On OpenSuse pkg-config --libs glib-2.0 gthread-2.0 generates:

	-pthread -lgthread-2.0 -lrt -lglib-2.0

Which is ok, because LDFLAGS=-m64 allows gcc/ld to find the correct
libraries.

The difference is that on opensuse the Gnome librairies are stored
directly in /usr/lib and /usr/lib64. (vs /opt/gnome/lib64

> find /usr -name 'libglib-2.0*'
/usr/lib/libglib-2.0.la
/usr/lib/libglib-2.0.so.0
/usr/lib/libglib-2.0.so
/usr/lib/libglib-2.0.so.0.1400.1
/usr/lib/libglib-2.0.a
/usr/lib64/libglib-2.0.la
/usr/lib64/libglib-2.0.so.0
/usr/lib64/libglib-2.0.so
/usr/lib64/libglib-2.0.so.0.1400.1
/usr/lib64/libglib-2.0.a


This prevents pkg-config from generating the unnecessary
"-L/opt/gnome/lib" option. 

I suspect that for linux the -L option is not required for either case,
given a properly defined ld.so.conf.
-------------- next part --------------
An embedded message was scrubbed...
From: Steven Munroe <munroesj at linux.vnet.ibm.com>
Subject: pkg-config support for biarch
Date: Thu, 21 Feb 2008 14:14:01 -0600
Size: 1308
Url: http://lists.freedesktop.org/archives/pkg-config/attachments/20080226/8b016429/attachment.eml 


More information about the pkg-config mailing list