shithub: opus-tools

Download patch

ref: e112f60ecb9e65729e07f86140fe757186c98f65
parent: 1f309732402e82d1bafa2d69ad45b4bca84906a4
author: Gregory Maxwell <greg@xiph.org>
date: Fri Jul 6 22:31:55 EDT 2012

Make stack-protector check use AC_LINK_IFELSE.

--- a/configure.ac
+++ b/configure.ac
@@ -190,7 +190,7 @@
 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"; use_stack_protector=yes ],
         AC_MSG_RESULT([no]))