mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-13 05:30:02 +00:00
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:
committed by
Martin Jansa
parent
3710b9da7f
commit
6e2d975fc1
@@ -14,6 +14,7 @@ export CC = "${BUILD_CC}"
|
|||||||
export CXX = "${BUILD_CXX}"
|
export CXX = "${BUILD_CXX}"
|
||||||
export LD = "${BUILD_LD}"
|
export LD = "${BUILD_LD}"
|
||||||
export AR = "${BUILD_AR}"
|
export AR = "${BUILD_AR}"
|
||||||
|
export PKG_CONFIG = "pkg-config-native"
|
||||||
|
|
||||||
def noprefix(var, d):
|
def noprefix(var, d):
|
||||||
return d.getVar(var, True).replace(d.getVar('prefix', True) + '/', '', 1)
|
return d.getVar(var, True).replace(d.getVar('prefix', True) + '/', '', 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user