summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2012-03-21 17:51:08 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-03-21 17:51:08 +0000
commit1722813295a323c5e79106a094380f5e94206b47 (patch)
tree8d34b954e6b2c9adeef4ff91f89ca2a2a4d67323 /configure.in
parent8149f976066c922eeafc10d72572c8ae59d54d31 (diff)
downloadglibc-1722813295a323c5e79106a094380f5e94206b47.tar.gz
Weaken -fstack-protector configure test to a compile test.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in16
1 files changed, 4 insertions, 12 deletions
diff --git a/configure.in b/configure.in
index bb3b057a36..b2fed4bd1c 100644
--- a/configure.in
+++ b/configure.in
@@ -1753,18 +1753,10 @@ fi
AC_SUBST(fno_unit_at_a_time)
AC_CACHE_CHECK(for -fstack-protector, libc_cv_ssp, [dnl
-cat > conftest.c <<EOF
-int foo;
-main () { return 0;}
-EOF
-if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
- -o conftest conftest.c 1>&AS_MESSAGE_LOG_FD])
-then
- libc_cv_ssp=yes
-else
- libc_cv_ssp=no
-fi
-rm -f conftest*])
+LIBC_TRY_CC_OPTION([$CFLAGS $CPPFLAGS -Werror -fstack-protector],
+ [libc_cv_ssp=yes],
+ [libc_cv_ssp=no])
+])
AC_SUBST(libc_cv_ssp)
AC_CACHE_CHECK(for -fgnu89-inline, libc_cv_gnu89_inline, [dnl