From: Craig Small Date: Fri, 24 Mar 2017 23:37:35 +0000 (+1100) Subject: build-sys: update harden flags, remove pie X-Git-Tag: v23.0~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f27c78d4d001f95336183da1031ca80f61db44f8;p=psmisc build-sys: update harden flags, remove pie --- diff --git a/configure.ac b/configure.ac index af3d3f6..176a2fc 100644 --- a/configure.ac +++ b/configure.ac @@ -96,8 +96,8 @@ AC_TYPE_UID_T # Check that harden CFLAGS and LDFLAGS will compile AS_IF([test "$enable_harden_flags" = "yes"], - HARDEN_CFLAGS="-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security" - [HARDEN_LDFLAGS="-fPIE -pie -Wl,-z,relro -Wl,-z,now"] + HARDEN_CFLAGS="-g -O2 -fstack-protector-strong -Wformat -Werror=format-security" + [HARDEN_LDFLAGS="-Wl,-z,relro"] [ AC_MSG_CHECKING([compiler supports harden flags]) save_harden_cflags="$CFLAGS" CFLAGS="$CFLAGS $HARDEN_CFLAGS"