From c4edeadc8b086819d3dcd50d4b25a4a9469fe43a Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 19 May 2015 15:06:33 +0200 Subject: [PATCH] build: also try to build a PIE when hardening is not disabled. --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 1877da2e..cacb7cfc 100644 --- a/configure.ac +++ b/configure.ac @@ -101,6 +101,8 @@ if test x"$hardening" != x"no"; then AX_CFLAGS_GCC_OPTION([-fstack-protector-all], [LLDP_CFLAGS]) AX_CFLAGS_GCC_OPTION([-fstack-protector-strong], [LLDP_CFLAGS]) AX_CFLAGS_GCC_OPTION([-D_FORTIFY_SOURCE=2], [LLDP_CPPFLAGS]) + AX_CFLAGS_GCC_OPTION([-fPIE], [LLDP_CFLAGS]) + AX_LDFLAGS_OPTION([-fPIE -pie], [LLDP_LDFLAGS]) fi AC_CACHE_SAVE -- 2.39.5