diff --git a/sysdeps/aarch64/configure b/sysdeps/aarch64/configure index 22ed9d38d2..d0d78d69f1 100644 --- a/sysdeps/aarch64/configure +++ b/sysdeps/aarch64/configure @@ -342,7 +342,7 @@ else cat > conftest.c < EOF - if ! ${CC-cc} conftest.c -fsyntax-only; then + if ! ${CC-cc} conftest.c -fsyntax-only -ffreestanding; then as_fn_error 1 "mathvec is enabled but compiler does not have SVE ACLE. Either use a compatible compiler or configure with --disable-mathvec (this results in incomplete ABI)." fi rm conftest.c diff --git a/sysdeps/aarch64/configure.ac b/sysdeps/aarch64/configure.ac index ba519c9053..259edc3de8 100644 --- a/sysdeps/aarch64/configure.ac +++ b/sysdeps/aarch64/configure.ac @@ -112,7 +112,7 @@ AC_CACHE_CHECK(for availability of SVE ACLE, libc_cv_has_sve_acle, [dnl cat > conftest.c < EOF - if ! ${CC-cc} conftest.c -fsyntax-only; then + if ! ${CC-cc} conftest.c -fsyntax-only -ffreestanding; then as_fn_error 1 "mathvec is enabled but compiler does not have SVE ACLE. Either use a compatible compiler or configure with --disable-mathvec (this results in incomplete ABI)." fi rm conftest.c