summarylogtreecommitdiffstats
path: root/mingw-cmake.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mingw-cmake.sh')
-rw-r--r--mingw-cmake.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/mingw-cmake.sh b/mingw-cmake.sh
index 191156cb5dd..9832efedeab 100644
--- a/mingw-cmake.sh
+++ b/mingw-cmake.sh
@@ -3,9 +3,9 @@ mingw_prefix=/usr/@TRIPLE@
export PKG_CONFIG_LIBDIR="${mingw_prefix}/lib/pkgconfig"
-default_mingw_pp_flags="-D_FORTIFY_SOURCE=0"
+default_mingw_pp_flags="-D_FORTIFY_SOURCE=2"
default_mingw_compiler_flags="$default_mingw_pp_flags -O2 -pipe -fno-plt -fexceptions --param=ssp-buffer-size=4"
-default_mingw_linker_flags="-Wl,-O1,--sort-common,--as-needed"
+default_mingw_linker_flags="-Wl,-O1,--sort-common,--as-needed -fstack-protector"
export CPPFLAGS="${MINGW_CPPFLAGS:-$default_mingw_pp_flags $CPPFLAGS}"
export CFLAGS="${MINGW_CFLAGS:-$default_mingw_compiler_flags $CFLAGS}"