mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-10 19:30:10 +00:00
Weaken -fstack-protector configure test to a compile test.
This commit is contained in:
parent
8149f97606
commit
1722813295
@ -1,3 +1,10 @@
|
|||||||
|
2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
|
||||||
|
Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
|
* configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
|
||||||
|
link test.
|
||||||
|
* configure: Regenerated.
|
||||||
|
|
||||||
2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
|
2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
|
||||||
|
|
||||||
* conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
|
* conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
|
||||||
|
12
configure
vendored
12
configure
vendored
@ -6643,23 +6643,17 @@ $as_echo_n "checking for -fstack-protector... " >&6; }
|
|||||||
if ${libc_cv_ssp+:} false; then :
|
if ${libc_cv_ssp+:} false; then :
|
||||||
$as_echo_n "(cached) " >&6
|
$as_echo_n "(cached) " >&6
|
||||||
else
|
else
|
||||||
cat > conftest.c <<EOF
|
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
|
||||||
int foo;
|
|
||||||
main () { return 0;}
|
|
||||||
EOF
|
|
||||||
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
|
|
||||||
-o conftest conftest.c 1>&5'
|
|
||||||
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
||||||
(eval $ac_try) 2>&5
|
(eval $ac_try) 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
test $ac_status = 0; }; }
|
test $ac_status = 0; }; }; then :
|
||||||
then
|
|
||||||
libc_cv_ssp=yes
|
libc_cv_ssp=yes
|
||||||
else
|
else
|
||||||
libc_cv_ssp=no
|
libc_cv_ssp=no
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
|
||||||
fi
|
fi
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
|
||||||
$as_echo "$libc_cv_ssp" >&6; }
|
$as_echo "$libc_cv_ssp" >&6; }
|
||||||
|
16
configure.in
16
configure.in
@ -1753,18 +1753,10 @@ fi
|
|||||||
AC_SUBST(fno_unit_at_a_time)
|
AC_SUBST(fno_unit_at_a_time)
|
||||||
|
|
||||||
AC_CACHE_CHECK(for -fstack-protector, libc_cv_ssp, [dnl
|
AC_CACHE_CHECK(for -fstack-protector, libc_cv_ssp, [dnl
|
||||||
cat > conftest.c <<EOF
|
LIBC_TRY_CC_OPTION([$CFLAGS $CPPFLAGS -Werror -fstack-protector],
|
||||||
int foo;
|
[libc_cv_ssp=yes],
|
||||||
main () { return 0;}
|
[libc_cv_ssp=no])
|
||||||
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*])
|
|
||||||
AC_SUBST(libc_cv_ssp)
|
AC_SUBST(libc_cv_ssp)
|
||||||
|
|
||||||
AC_CACHE_CHECK(for -fgnu89-inline, libc_cv_gnu89_inline, [dnl
|
AC_CACHE_CHECK(for -fgnu89-inline, libc_cv_gnu89_inline, [dnl
|
||||||
|
Loading…
Reference in New Issue
Block a user