shithub: opus

Download patch

ref: c329045758ccd614284f0b7cca859bc046ba1ae3
parent: 27a0a5fa463230843322843b7191ff2ccefb0f5d
author: Gregory Maxwell <[email protected]>
date: Fri Jul 6 22:29:56 EDT 2012

Make stack-protector check use AC_LINK_IFELSE.

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