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:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2018-03-02 23:08:21 +0300
committerJean-Marc Valin <jmvalin@jmvalin.ca>2018-03-02 23:08:21 +0300
commite1c0770a49f5aad8053c204bb11c7c552020b684 (patch)
tree5f37d2bfaad9199783bbc8f9a334be321c5cfcd3
parent610c14ce80ad1a6754a9e2743e6799cf45a093c5 (diff)
Don't enable -fstack-protector-strong on Windows for now
It adds a libssp-0.dll dependency and prevents static linking
-rw-r--r--configure.ac9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index dbc4ed1c..3bd683b3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -829,13 +829,20 @@ i[[3456]]86 | x86_64)
;;
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.
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])
])