chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sd-login: add C API to query primary session of a user
[elogind.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index 30ef33d59bea231c210af2e3e5ace3042b03fd25..469fc2d942cbf7ec2aa2921c45fefc982b37ea54 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-176,6
+176,7
@@
CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
-fdata-sections \
-fstack-protector \
-fstack-protector-strong \
-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], [\
--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 \
-Wl,--gc-sections \
-Wl,-z,relro \
-Wl,-z,now \
+ -pie \
-Wl,-fuse-ld=gold])
AC_SUBST([OUR_LDFLAGS], "$with_ldflags $sanitizer_ldflags")
-Wl,-fuse-ld=gold])
AC_SUBST([OUR_LDFLAGS], "$with_ldflags $sanitizer_ldflags")