From 14eae625795231765e43af3a56695d5a89266fc2 Mon Sep 17 00:00:00 2001 From: Chris Friedt Date: Wed, 6 Dec 2023 09:20:16 -0500 Subject: [PATCH] update configure to include zephyr-bits.h Touch-up the generated configure script to reflect changes in configure.ac . Signed-off-by: Chris Friedt --- configure | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure b/configure index 5dcaab14ae99c..fdc0cf8bcf297 100755 --- a/configure +++ b/configure @@ -2877,6 +2877,14 @@ else is_cross_compiler=yes fi +# required for gthr-posix.h support in Zephyr +case "${target}" in + *zephyr*) + CFLAGS="$CFLAGS -include `realpath $srcdir/libgcc/zephyr-bits.h`" + CXXFLAGS="$CXXFLAGS -include `realpath $srcdir/libgcc/zephyr-bits.h`" + ;; +esac + # Find the build and target subdir names. # post-stage1 host modules use a different CC_FOR_BUILD so, in order to