pkg-config: rework --with-sysroot patch so it doesn't break target build
authorPeter Korsgaard <jacmet@sunsite.dk>
Sun, 30 Jan 2011 10:05:50 +0000 (11:05 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 30 Jan 2011 10:05:50 +0000 (11:05 +0100)
commit02d605cd556107d9e1a4f0c9ae9ee3403fd1a170
treeedf39d82b31078b98733bf6fc761f7b5aa81238c
parentbe89b851762244c8d3f1c14f1fae6afa1b695b5c
pkg-config: rework --with-sysroot patch so it doesn't break target build

We don't currently autoreconf pkg-config for the target as we don't need
--with-sysroot support, which means PKG_CONFIG_SYSROOT=NULL wasn't
passed, breaking the build.

Fix it by reworking the patch to only pass this if --with-sysroot is given,
and handle the not set case in main.c.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/pkg-config/pkg-config-0.25-add-with-sysroot.patch