diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-05-22 21:50:11 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2023-06-07 07:43:59 -0400 |
commit | df5a73dfe324b1cf177bfbaa56f5326f69715960 (patch) | |
tree | cb29ab915b058b6c76a4e5f01131fce694d5f2b5 | |
parent | 928658212611ea457a5eacec48f0760e03269a24 (diff) | |
download | meta-openembedded-df5a73dfe324b1cf177bfbaa56f5326f69715960.tar.gz |
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 <jan.vermaete@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit fcdb991b8015e77353517fb327d0def2a23b0173)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-oe/recipes-support/fftw/fftw_3.3.10.bb | 2 |
1 files changed, 1 insertions, 1 deletions
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() { | |||
55 | do_compile() { | 55 | do_compile() { |
56 | for lib in fftw fftwl fftwf; do | 56 | for lib in fftw fftwl fftwf; do |
57 | cd ${WORKDIR}/build-$lib | 57 | cd ${WORKDIR}/build-$lib |
58 | sed -i -e 's|${TOOLCHAIN_OPTIONS}||g' config.h | 58 | test -n "${TOOLCHAIN_OPTIONS}" && sed -i -e 's|${TOOLCHAIN_OPTIONS}||g' config.h |
59 | autotools_do_compile | 59 | autotools_do_compile |
60 | done | 60 | done |
61 | } | 61 | } |