bind-9.5-PIE.patch 493 B

123456789101112131415161718
  1. diff --git a/bin/named/Makefile.am b/bin/named/Makefile.am
  2. index 57a023b..085f2f7 100644
  3. --- a/bin/named/Makefile.am
  4. +++ b/bin/named/Makefile.am
  5. @@ -32,9 +32,12 @@ AM_CPPFLAGS += \
  6. endif HAVE_LIBXML2
  7. AM_CPPFLAGS += \
  8. + -fpie \
  9. -DNAMED_LOCALSTATEDIR=\"${localstatedir}\" \
  10. -DNAMED_SYSCONFDIR=\"${sysconfdir}\"
  11. +AM_LDFLAGS += -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack
  12. +
  13. sbin_PROGRAMS = named
  14. nodist_named_SOURCES = xsl.c