mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-23 08:48:24 +00:00
ibus: Use native pkg-config for build tools
When cross compiling, ibus builds unicode-parser with CC_FOR_BUILD and the glib flags from PKG_CONFIG_FOR_BUILD. That defaults to the native pkg-config binary, but with the target PKG_CONFIG_PATH and sysroot, so the build tool is compiled against the target glib headers. On 32-bit targets glib's static assertions then fail with the 64-bit host compiler: glib/gmacros.h:910:31: error: static assertion failed: "Expression evaluates to false" Pass pkg-config-native, which uses the native sysroot, as PKG_CONFIG_FOR_BUILD. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
1 file changed
+1
@@ -41,6 +41,7 @@ EXTRA_OECONF = " \
|
||||
--disable-python2 \
|
||||
--with-python=${bindir}/python3 \
|
||||
--with-ucd-dir=${STAGING_DATADIR}/unicode/ucd \
|
||||
PKG_CONFIG_FOR_BUILD=${STAGING_BINDIR_NATIVE}/pkg-config-native \
|
||||
"
|
||||
|
||||
do_configure:prepend() {
|
||||
|
||||
Reference in new issue
Block a user