summaryrefslogtreecommitdiff
path: root/libatomic/acinclude.m4
diff options
context:
space:
mode:
Diffstat (limited to 'libatomic/acinclude.m4')
-rw-r--r--libatomic/acinclude.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/libatomic/acinclude.m4 b/libatomic/acinclude.m4
index 13206f0a2a6..282a9929a6e 100644
--- a/libatomic/acinclude.m4
+++ b/libatomic/acinclude.m4
@@ -67,13 +67,15 @@ AC_DEFUN([LIBAT_TEST_ATOMIC_BUILTIN],[
else
old_CFLAGS="$CFLAGS"
# Compile unoptimized.
- CFLAGS='-O0 -S'
+ CFLAGS="$CFLAGS -O0 -S"
if AC_TRY_EVAL(ac_compile); then
if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
eval $2=no
else
eval $2=yes
fi
+ else
+ eval $2=no
fi
CFLAGS="$old_CFLAGS"
fi