]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
apr-util: Fix CFLAGS used in build
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 28 Feb 2021 18:21:02 +0000 (18:21 +0000)
committerSteve Sakoman <steve@sakoman.com>
Mon, 6 Mar 2023 14:54:35 +0000 (04:54 -1000)
We need to use CFLAGS with the correct WORKDIR in them, replace those
in the sysroot file with the ones appropriate to the current recipe.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 45edf189961aff1858be9bb7b63116073c0a0c10)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oeqa/selftest/cases/reproducible.py
meta/recipes-support/apr/apr-util_1.6.1.bb

index 4b606e7e64bc318fece9817d365c30855f371f65..adaabee47b6204f65aa37590ff696dc3510c06d2 100644 (file)
@@ -39,7 +39,6 @@ exclude_packages = [
        'gstreamer1.0-python',
        'hwlatdetect',
         'kernel-devsrc',
-       'libaprutil',
        'libcap-ng',
        'libjson',
        'libproxy',
index f7d827a1d84be3a36b837c32d7c12f54cb4936c5..4e183ca3749fc8ec72bf60923f50d063737e7be7 100644 (file)
@@ -35,6 +35,7 @@ OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'"
 do_configure_append() {
        if [ "${CLASSOVERRIDE}" = "class-target" ]; then
                cp ${STAGING_DATADIR}/apr/apr_rules.mk ${B}/build/rules.mk
+               sed -i -e 's#^CFLAGS=.*#CFLAGS=${TARGET_CFLAGS}#g' ${B}/build/rules.mk
        fi
 }
 do_configure_prepend_class-native() {
@@ -49,6 +50,7 @@ do_configure_append_class-native() {
 
 do_configure_prepend_class-nativesdk() {
        cp ${STAGING_DATADIR}/apr/apr_rules.mk ${S}/build/rules.mk
+       sed -i -e 's#^CFLAGS=.*#CFLAGS=${TARGET_CFLAGS}#g' ${S}/build/rules.mk
 }
 
 do_configure_append_class-nativesdk() {