diff options
author | Cristian RodrÃguez <crrodriguez@opensuse.org> | 2014-05-18 11:46:42 -0400 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-05-19 01:14:35 +0900 |
commit | 2a4d1ec1520c926b0160efe14142634e164ddc30 (patch) | |
tree | cbac88ec685017d609cc3ee7b70b2a1d04d3ac1a /configure.ac | |
parent | cdc06ed7b6120c1049305fa7033f228ee9d86043 (diff) |
build: Compile everything with PIE
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 30ef33d59b..469fc2d942 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") |