Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2012-08-09 16:39:15 +0400
committerGregory Maxwell <greg@xiph.org>2012-08-09 16:39:15 +0400
commit417679c3e5c9ae6a01c3e14846eb0ec5c7d61798 (patch)
tree1d0c91f083b178629a11238a4e2c91fc8773fa01 /configure.ac
parente852c3428080b3d083e6ef07dc2bea1644e5d5b4 (diff)
Disable stack-protector for mingw32 and remove win32 restrict define.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 44710d57..9bd15182 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,6 +49,7 @@ AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
AM_MAINTAINER_MODE
AC_CANONICAL_HOST
+AC_MINGW32
AM_PROG_LIBTOOL
AM_PROG_CC_C_O
@@ -209,7 +210,8 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([char foo;])],
CFLAGS="$saved_CFLAGS $SYMBOL_VISIBILITY"
AC_SUBST(SYMBOL_VISIBILITY)
-ac_build_stack_protector=yes
+ac_build_stack_protector=no
+if test "x$ac_cv_c_compiler_gnu" = "xyes" && test "x$MINGW32" != "xyes" ; then
AC_ARG_ENABLE(stack-protector,
AS_HELP_STRING([--disable-stack-protector],[Disable compiler stack hardening]),
[
@@ -231,6 +233,7 @@ AC_LINK_IFELSE([AC_LANG_SOURCE([void main(void){char foo;}])],
CFLAGS="$saved_CFLAGS $STACK_PROTECTOR"
fi
fi
+fi
CFLAGS="$CFLAGS -W"