summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartchus2019-11-12 17:30:42 +0100
committerMartchus2019-11-12 17:30:42 +0100
commite9bef2eeef352849a078dad6d1b6aed0ffed4bc4 (patch)
tree329ad789de890dd49d89d2f458e5986d682bf2d9
parent282de2ab2eacf0bff5b4cf47ba834d9621d20c25 (diff)
downloadaur-e9bef2eeef352849a078dad6d1b6aed0ffed4bc4.tar.gz
Fix flags for mingw-w64 7.0.0
-rw-r--r--PKGBUILD2
1 files changed, 1 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a4c6713efd7..4af7e3f6458 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -157,7 +157,7 @@ prepare() {
CPPFLAGS="${MINGW_CPPFLAGS:--D_FORTIFY_SOURCE=2}"
CFLAGS="${MINGW_CFLAGS:-$CPPFLAGS -O2 -pipe -fno-plt -fexceptions --param=ssp-buffer-size=4}"
CXXFLAGS="${MINGW_CXXFLAGS:-$CPPFLAGS -O2 -pipe -fno-plt -fexceptions --param=ssp-buffer-size=4}"
- LDFLAGS="${MINGW_LDFLAGS:--Wl,-O1,--sort-common,--as-needed}"
+ LDFLAGS="${MINGW_LDFLAGS:--Wl,-O1,--sort-common,--as-needed -fstack-protector}"
sed -i -e "s|^\(QMAKE_CFLAGS_RELEASE.*=\).*$|\1 ${CFLAGS}|" \
-e "s|^\(QMAKE_CXXFLAGS_RELEASE.*=\).*$|\1 ${CXXFLAGS}|" \
-e "s|^\(QMAKE_LFLAGS_RELEASE.*=\).*$|\1 ${LDFLAGS}|" \