meson: export PKG_CONFIG to use pkg-config-native for native builds

By default Meson uses 'pkg-config' in native builds but as that is the cross
pkg-config, export PKG_CONFIG to use the correct pkg-config-native binary.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Ross Burton 2017-06-26 16:11:14 +01:00 committed by Martin Jansa
parent 3710b9da7f
commit 6e2d975fc1

View File

@ -14,6 +14,7 @@ export CC = "${BUILD_CC}"
export CXX = "${BUILD_CXX}"
export LD = "${BUILD_LD}"
export AR = "${BUILD_AR}"
export PKG_CONFIG = "pkg-config-native"
def noprefix(var, d):
return d.getVar(var, True).replace(d.getVar('prefix', True) + '/', '', 1)