[systemd-commits] configure.ac

Lennart Poettering lennart at kemper.freedesktop.org
Sun May 18 09:31:52 PDT 2014


 configure.ac |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 2a4d1ec1520c926b0160efe14142634e164ddc30
Author: Cristian Rodríguez <crrodriguez at opensuse.org>
Date:   Sun May 18 11:46:42 2014 -0400

    build: Compile everything with PIE

diff --git a/configure.ac b/configure.ac
index 30ef33d..469fc2d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -176,6 +176,7 @@ CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
         -fdata-sections \
         -fstack-protector \
         -fstack-protector-strong \
+        -fPIE \
         --param=ssp-buffer-size=4])
 AS_CASE([$CFLAGS], [*-O[[12345\ ]]*],
         [CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
@@ -195,6 +196,7 @@ CC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
         -Wl,--gc-sections \
         -Wl,-z,relro \
         -Wl,-z,now \
+        -pie \
         -Wl,-fuse-ld=gold])
 AC_SUBST([OUR_LDFLAGS], "$with_ldflags $sanitizer_ldflags")
 



More information about the systemd-commits mailing list