]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: also try to build a PIE when hardening is not disabled.
authorVincent Bernat <vincent@bernat.im>
Tue, 19 May 2015 13:06:33 +0000 (15:06 +0200)
committerVincent Bernat <vincent@bernat.im>
Tue, 19 May 2015 13:06:33 +0000 (15:06 +0200)
configure.ac

index 1877da2e764800f95171a4486186857530752376..cacb7cfc1302c7425ff496521e644f448fab291b 100644 (file)
@@ -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