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

Disable stack-protector for mingw32 and remove win32 restrict define.

parent e852c342
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,7 @@ AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define) ...@@ -49,6 +49,7 @@ AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
AM_MAINTAINER_MODE AM_MAINTAINER_MODE
AC_CANONICAL_HOST AC_CANONICAL_HOST
AC_MINGW32
AM_PROG_LIBTOOL AM_PROG_LIBTOOL
AM_PROG_CC_C_O AM_PROG_CC_C_O
...@@ -209,7 +210,8 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([char foo;])], ...@@ -209,7 +210,8 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([char foo;])],
CFLAGS="$saved_CFLAGS $SYMBOL_VISIBILITY" CFLAGS="$saved_CFLAGS $SYMBOL_VISIBILITY"
AC_SUBST(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, AC_ARG_ENABLE(stack-protector,
AS_HELP_STRING([--disable-stack-protector],[Disable compiler stack hardening]), 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;}])], ...@@ -231,6 +233,7 @@ AC_LINK_IFELSE([AC_LANG_SOURCE([void main(void){char foo;}])],
CFLAGS="$saved_CFLAGS $STACK_PROTECTOR" CFLAGS="$saved_CFLAGS $STACK_PROTECTOR"
fi fi
fi fi
fi
CFLAGS="$CFLAGS -W" CFLAGS="$CFLAGS -W"
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
#define CELT_BUILD 1 #define CELT_BUILD 1
#define restrict
#define inline __inline #define inline __inline
#define getpid _getpid #define getpid _getpid
......
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