configure: Enable pie for toolchain=hardened.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 4 Oct 2016 10:21:41 +0000 (12:21 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Fri, 14 Oct 2016 12:56:40 +0000 (14:56 +0200)
configure

index 8db46c5..96f575f 100755 (executable)
--- a/configure
+++ b/configure
@@ -3575,6 +3575,8 @@ case "$toolchain" in
         add_cppflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
         add_cflags   -fno-strict-overflow -fstack-protector-all
         add_ldflags  -Wl,-z,relro -Wl,-z,now
+        add_cflags   -fPIE
+        add_ldexeflags -fPIE -pie
     ;;
     ?*)
         die "Unknown toolchain $toolchain"