pkg-config --libs scratches the order
bora.sahin at ttnet.net.tr
bora.sahin at ttnet.net.tr
Tue Jan 31 16:04:20 PST 2006
I am trying to cross-compile glib/gtk stuff. I passed glib part and then
started to compile pango. In fact, everything went smootly. But I noticed
one thing. After enabling X, configure script tries
pkg-config --libs xft
and pkg-config scratches the order in the xft.pc file. This was not a
problem when cross-compiling except a warning but maybe it can cause some
problems hereafter. So I just wonder why it does this. The content of my
xft.pc file is below:
------------------------------
prefix=/opt/db1200/gcc-3.4.4-glibc-2.3.5/mipsel-unknown-linux-gnu/mipsel-unknown-linux-gnu
exec_prefix=${prefix}
libdir=${prefix}/lib/X11
includedir=${prefix}/include/X11
freetypelibs=-L/opt/db1200/gcc-3.4.4-glibc-2.3.5/mipsel-unknown-linux-gnu/mipsel-unknown-linux-gnu/lib
-lfreetype
freetypecflags=-I/opt/db1200/gcc-3.4.4-glibc-2.3.5/mipsel-unknown-linux-gnu/mipsel-unknown-linux-gnu/include
-I/opt/db1200/gcc-3.4.4-glibc-2.3.5/mipsel-unknown-linux-gnu/mipsel-unknown-linux-gnu/include/freetype2
-I/opt/db1200/gcc-3.4.4-glibc-2.3.5/mipsel-unknown-linux-gnu/mipsel-unknown-linux-gnu/include/freetype2/config
Name: Xft
Description: X FreeType library
Version: 2.1.2.2
Requires: fontconfig
Libs: -L${libdir} -lXft -lX11 -lXrender ${freetypelibs}
Cflags: -I${includedir} ${freetypecflags}
------------------------------
pkg-config --clags is OK but pkg-config --libs returns:
-L/opt/db1200/gcc-3.4.4-glibc-2.3.5/mipsel-unknown-linux-gnu/mipsel-unknown-linux-gnu/lib/X11
-L/opt/db1200/gcc-3.4.4-glibc-2.3.5/mipsel-unknown-linux-gnu/mipsel-unknown-linux-gnu/lib
-lXft -lX11 -lXrender -lfreetype -lfontconfig -lexpat
which normally I expect
-L/opt/db1200/gcc-3.4.4-glibc-2.3.5/mipsel-unknown-linux-gnu/mipsel-unknown-linux-gnu/lib/X11
-lXft -lX11 -lXrender -lfontconfig -lexpat
-L/opt/db1200/gcc-3.4.4-glibc-2.3.5/mipsel-unknown-linux-gnu/mipsel-unknown-linux-gnu/lib
-lfreetype
It combines lib and lib/X11 elements somehow... When I put ${freetypelibs}
to the start of the line everything changes. This time all of them is
prefixed with the other. What is the reason of it or am I miss something?
I use Debian/Sarge and pkg-config --version shows 0.17.2...
Ps: I am not on the list, please cc to me...
Thanks...
--
Bora SAHIN
More information about the pkg-config
mailing list