pkg-config-wrapper sets PKG_CONFIG_PATH incorrectly when cross compiling for linux and fails to find .pc files from the sysroot
using python: /usr/bin/python version: 2.7.6 Using external chromium sources specified in git config qtwebengine.chromiumsrcdir: /home/sapiippo/development/build/sabre/qtwebengine/src/3rdparty/chromium Using extra options found in /home/sapiippo/development/build/sabre/qtwebengine/src/core/qtwebengine_extras.gypi Updating projects from gyp files... Using external chromium sources specified in git config qtwebengine.chromiumsrcdir: /home/sapiippo/development/build/sabre/qtwebengine/src/3rdparty/chromium Package fontconfig was not found in the pkg-config search path. Perhaps you should add the directory containing `fontconfig.pc' to the PKG_CONFIG_PATH environment variable No package 'fontconfig' found gyp: Call to './pkg-config-wrapper "/home/sapiippo/development/build/sabre/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi" "arm" "/home/sapiippo/development/build/sabre/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/lib" --cflags fontconfig' returned exit status 1. Project ERROR: -- running gyp_qtwebengine failed --
actual pkg-config call is made as
PKG_CONFIG_PATH=/home/sapiippo/development/build/sabre/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr//home/sapiippo/development/build/sabre/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/lib/pkgconfig:/home/sapiippo/development/build/sabre/toolchain/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/share/pkgconfig pkg-config --cflags fontconfig