kumquat-buildroot/package/pkg-config
Peter Korsgaard 117a8ea0ea pkg-config: only prepend sysroot to includedir / libdir
Only append sysroot to includedir / libdir, and not to other variables,
when a variable is requested (--variable=<name>), similar to how it
is done for the -I / -L flags in cflags/ldflags.

The problem is that pkg-config doesn't have any explicit cross compilation
support, so there's some confusion about what are host paths and what are
target ones.  Includedir / libdir are paths for the (cross) compiler, so
those should normally have sysroot prepended, but other variables might
refer to target paths instead.

This fixes the installation of the xfonts-* packages, which uses
pkg-config --variable=fontrootdir fontutil to figure out the target
installation location for fonts.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-03-10 11:36:18 +01:00
..
Config.in package: gettext needs WCHAR support 2010-05-25 23:38:44 +02:00
pkg-config-0.25-add-with-sysroot.patch pkg-config: rework --with-sysroot patch so it doesn't break target build 2011-01-30 11:05:50 +01:00
pkg-config-0.25-fix-variable.patch pkg-config: only prepend sysroot to includedir / libdir 2011-03-10 11:36:18 +01:00
pkg-config.mk pkg-config: add --with-sysroot option for compiled in default sysroot setting 2011-01-30 00:37:53 +01:00