summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-11-23 11:50:17 +0000
committerRichard Hughes <richard@hughsie.com>2016-11-23 11:50:17 +0000
commitd156942f23b80137740c0781a14a9f05f5fe497c (patch)
treefd750e5dfbf9fc6726e767e074358b04cb25996c
parent009da5bb824d71094c247058bcf5c6e1a650d0b7 (diff)
downloadappstream-glib-d156942f23b80137740c0781a14a9f05f5fe497c.tar.gz
Enable the stack protection in local builds
This means we crash just the same way as the distro packages.
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index d02cb74..d12ab08 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,6 +66,8 @@ LT_INIT
AM_PROG_CC_C_O
WARN_CFLAGS_EXTRA="
+ -D_FORTIFY_SOURCE=2
+ -fstack-protector-strong
-Waggregate-return
-Warray-bounds
-Wcast-align