From 146ce11b11cbe5c6c8ce67e9a3dda959debd3eeb Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 17 Sep 2019 15:43:25 +0200 Subject: [PATCH] Use -fno-stack-check as an alternative to -ffreestanding --- configure | 10 +++++----- configure.ac | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/configure b/configure index c30ee5d1..bb26c755 100755 --- a/configure +++ b/configure @@ -7517,15 +7517,15 @@ if ac_fn_c_try_compile "$LINENO"; then : $as_echo "yes" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using unsupported Xcode version" >&5 $as_echo "$as_me: WARNING: Using unsupported Xcode version" >&2;} - as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS -ffreestanding" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS -ffreestanding" >&5 -$as_echo_n "checking whether C compiler accepts $CFLAGS -ffreestanding... " >&6; } + as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS -fno-stack-check" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS -fno-stack-check" >&5 +$as_echo_n "checking whether C compiler accepts $CFLAGS -fno-stack-check... " >&6; } if eval \${$as_CACHEVAR+:} false; then : $as_echo_n "(cached) " >&6 else ax_check_save_flags=$CFLAGS - CFLAGS="$CFLAGS $CFLAGS -ffreestanding" + CFLAGS="$CFLAGS $CFLAGS -fno-stack-check" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -7550,7 +7550,7 @@ eval ac_res=\$$as_CACHEVAR { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : - CFLAGS="$CFLAGS -ffreestanding" + CFLAGS="$CFLAGS -fno-stack-check" else : fi diff --git a/configure.ac b/configure.ac index 10b0c143..152c7c0d 100644 --- a/configure.ac +++ b/configure.ac @@ -295,8 +295,8 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[ ]])], [AC_MSG_RESULT(yes) AC_MSG_WARN([Using unsupported Xcode version]) - AX_CHECK_COMPILE_FLAG([$CFLAGS -ffreestanding], - [CFLAGS="$CFLAGS -ffreestanding"]) + AX_CHECK_COMPILE_FLAG([$CFLAGS -fno-stack-check], + [CFLAGS="$CFLAGS -fno-stack-check"]) ], [AC_MSG_RESULT(no) ])