]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
bash/flex: Ensure BUILD_FLAGS doesn't leak onto target
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 16 Mar 2024 15:43:22 +0000 (15:43 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Mar 2024 15:24:56 +0000 (15:24 +0000)
The ptest packages were leaking BUILD_LDFLAGS into the Makefile used
on target. Remove these values instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/flex/flex_2.6.4.bb
meta/recipes-extended/bash/bash.inc

index 1ac88d65ef834fe4be7afcf878552a50bd7ceb25..f7d4ef1f085604ccf0767b92c1a519fea327eef5 100644 (file)
@@ -68,6 +68,7 @@ do_install_ptest() {
        sed -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
            -e 's|${DEBUG_PREFIX_MAP}||g' \
            -e 's:${HOSTTOOLS_DIR}/::g' \
+           -e 's:\(^LDFLAGS_FOR_BUILD =\).*:\1:g' \
            -e 's:${RECIPE_SYSROOT_NATIVE}::g' \
            -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \-e 's/^Makefile:/_Makefile:/' \
            -e 's/^srcdir = \(.*\)/srcdir = ./' -e 's/^top_srcdir = \(.*\)/top_srcdir = ./' \
index 2c3e60551136c935242ad496a6785162aab0a913..7832ad052b9dd23d46f9c4dd01e157816cd22368 100644 (file)
@@ -102,6 +102,7 @@ do_install_ptest () {
        install -D ${WORKDIR}/run-bash-ptests ${D}${PTEST_PATH}/run-bash-ptests
         sed -i -e 's/^Makefile/_Makefile/' -e "s,--sysroot=${STAGING_DIR_TARGET},,g" \
            -e 's|${DEBUG_PREFIX_MAP}||g' \
+           -e 's|${BUILD_LDFLAGS}||g' \
            -e "s,${S},,g" -e "s,${B},,g" -e "s,${STAGING_DIR_NATIVE},,g" \
            -e 's:${HOSTTOOLS_DIR}/::g' \
            -e 's:${UNINATIVE_LOADER}:${base_bindir}/false:g' \