coreutils/coreutils-8.4-su-pie.patch

12 lines
415 B
Diff
Raw Normal View History

2010-09-06 07:31:40 +00:00
diff -urNp coreutils-8.4-orig/src/Makefile.am coreutils-8.4/src/Makefile.am
--- coreutils-8.4-orig/src/Makefile.am 2010-09-03 17:34:43.399747649 +0200
+++ coreutils-8.4/src/Makefile.am 2010-09-03 17:36:13.005765125 +0200
@@ -367,6 +367,7 @@ factor_LDADD += $(LIB_GMP)
# for crypt
su_LDADD += $(LIB_CRYPT) @LIB_PAM@
+su_LDFLAGS = -pie -Wl,-z,relro,-z,now
2010-09-06 07:31:40 +00:00
# for various ACL functions
copy_LDADD += $(LIB_ACL)