From df5a73dfe324b1cf177bfbaa56f5326f69715960 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 22 May 2023 21:50:11 -0700 Subject: fftw: Check for TOOLCHAIN_OPTIONS to be non-empty before sed ops Ensures that we do not apply empty sed expression which might happen when building native recipe Cc: jan vermaete Signed-off-by: Khem Raj (cherry picked from commit fcdb991b8015e77353517fb327d0def2a23b0173) Signed-off-by: Armin Kuster --- meta-oe/recipes-support/fftw/fftw_3.3.10.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-oe/recipes-support/fftw/fftw_3.3.10.bb b/meta-oe/recipes-support/fftw/fftw_3.3.10.bb index 1fead4d029..33e8279880 100644 --- a/meta-oe/recipes-support/fftw/fftw_3.3.10.bb +++ b/meta-oe/recipes-support/fftw/fftw_3.3.10.bb @@ -55,7 +55,7 @@ do_configure() { do_compile() { for lib in fftw fftwl fftwf; do cd ${WORKDIR}/build-$lib - sed -i -e 's|${TOOLCHAIN_OPTIONS}||g' config.h + test -n "${TOOLCHAIN_OPTIONS}" && sed -i -e 's|${TOOLCHAIN_OPTIONS}||g' config.h autotools_do_compile done } -- cgit v1.2.3-54-g00ecf