shithub: opus

Download patch

ref: e1c0770a49f5aad8053c204bb11c7c552020b684
parent: 610c14ce80ad1a6754a9e2743e6799cf45a093c5
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Fri Mar 2 10:08:21 EST 2018

Don't enable -fstack-protector-strong on Windows for now

It adds a libssp-0.dll dependency and prevents static linking

--- a/configure.ac
+++ b/configure.ac
@@ -829,6 +829,13 @@
   ;;
 esac
 
+on_windows=no
+case $host in
+*cygwin*|*mingw*)
+  on_windows=yes
+  ;;
+esac
+
 dnl Enable stack-protector-all only on x86 where it's well supported.
 dnl on some platforms it causes crashes. Hopefully the OS's default's
 dnl include this on platforms that work but have been missed here.
@@ -835,7 +842,7 @@
 AC_ARG_ENABLE([stack-protector],
     [AS_HELP_STRING([--disable-stack-protector],[Disable compiler stack hardening])],,
     [
-      AS_IF([test "$ac_cv_c_compiler_gnu" = "yes" && test "$on_x86" = "yes"],
+      AS_IF([test "$ac_cv_c_compiler_gnu" = "yes" && test "$on_x86" = "yes" && test "$on_windows" = "no"],
             [enable_stack_protector=yes],[enable_stack_protector=no])
     ])