From f95ca5ef3b2890abfac73e7a0d59695442b1e37a Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Sat, 8 Jan 2022 13:33:02 -0500 Subject: [build] use -fstack-protector-strong w/ extra warn use -fstack-protector-strong if configured with --enable-extra-warnings --- configure.ac | 1 + 1 file changed, 1 insertion(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index a05b8115..31e92d9c 100644 --- a/configure.ac +++ b/configure.ac @@ -1623,6 +1623,7 @@ AC_ARG_ENABLE([extra-warnings], if test "$extrawarnings" = true || test "$extrawarnings" = error; then TRY_CFLAGS([-g -O2 -g2 -Wall -Wmissing-declarations -Wcast-align -Wsign-compare -Wnested-externs -Wpointer-arith -D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security]) + TRY_CFLAGS([-fstack-protector-strong]) case "$host_os" in *darwin* ) ;; * ) TRY_LDFLAGS([-Wl,--as-needed]) ;; -- cgit v1.2.1