From 405eb1640a415fd6e956e6f6fac00a39875467a4 Mon Sep 17 00:00:00 2001 From: Enrico Jorns Date: Fri, 7 Apr 2017 10:38:11 +0200 Subject: barebox: fix pkg-config for host tools PKG_CONF_PATH must be set to STAGING_DIR_NATIVE instead of STAGING_DIR_HOST to allow building host tools with library dependencies such as imx-usb-loader that depends on libusb.h and otherwise fails with: | scripts/imx/imx-usb-loader.c:33:20: fatal error: libusb.h: No such file or directory | #include | ^ | compilation terminated. Signed-off-by: Enrico Jorns --- recipes-bsp/barebox/barebox.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes-bsp/barebox/barebox.inc b/recipes-bsp/barebox/barebox.inc index 23deaf1..e717fe3 100644 --- a/recipes-bsp/barebox/barebox.inc +++ b/recipes-bsp/barebox/barebox.inc @@ -48,6 +48,7 @@ do_compile () { # Barebox uses pkg-config only for building native tools export PKG_CONFIG_LIBDIR="${STAGING_DIR_NATIVE}${libdir}/pkgconfig:${STAGING_DIR_NATIVE}/usr/share/pkgconfig" export PKG_CONFIG_SYSROOT_DIR= + export PKG_CONFIG_PATH="${STAGING_DIR_NATIVE}" export TARGETCFLAGS="${TARGET_LDFLAGS}${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" unset LDFLAGS -- cgit v1.2.3