From a8b461974e67a4c565c1aa5bcee21d19f97945e8 Mon Sep 17 00:00:00 2001 From: Simone Basso Date: Wed, 26 Feb 2020 18:10:13 +0100 Subject: [PATCH] cross-mingw: start introducing some hardening flags --- cross-mingw | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cross-mingw b/cross-mingw index b887265..60bbceb 100755 --- a/cross-mingw +++ b/cross-mingw @@ -19,10 +19,10 @@ set -x export AR="x86_64-w64-mingw32-ar" export AS="x86_64-w64-mingw32-as" export CC="x86_64-w64-mingw32-gcc" -export CFLAGS="-Wall -O2" +export CFLAGS="-Wall -O2 -fstack-protector-strong -D_FORTIFY_SOURCE=2" export CPP="x86_64-w64-mingw32-cpp" export CXX="x86_64-w64-mingw32-g++" -export CXXFLAGS="-Wall -O2" +export CXXFLAGS="-Wall -O2 -fstack-protector-strong -D_FORTIFY_SOURCE=2" export LD="x86_64-w64-mingw32-ld" export NM="x86_64-w64-mingw32-nm" export PATH="/usr/local/bin:/usr/bin:/bin"