Skip to content
Snippets Groups Projects
Commit c3290457 authored by Gregory Maxwell's avatar Gregory Maxwell
Browse files

Make stack-protector check use AC_LINK_IFELSE.

parent 27a0a5fa
No related branches found
No related tags found
No related merge requests found
......@@ -224,7 +224,7 @@ if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -fstack-protector-all"
AC_MSG_CHECKING([if ${CC} supports -fstack-protector-all])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([char foo;])],
AC_LINK_IFELSE([AC_LANG_SOURCE([void main(void){char foo;}])],
[ AC_MSG_RESULT([yes])
STACK_PROTECTOR="-fstack-protector-all" ],
AC_MSG_RESULT([no]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment