bind9-next/bind-9.5-PIE.patch

18 lines
493 B
Diff
Raw Normal View History

diff --git a/bin/named/Makefile.am b/bin/named/Makefile.am
2022-09-14 18:51:22 +00:00
index 57a023b..085f2f7 100644
--- a/bin/named/Makefile.am
+++ b/bin/named/Makefile.am
2022-09-14 18:51:22 +00:00
@@ -32,9 +32,12 @@ AM_CPPFLAGS += \
endif HAVE_LIBXML2
AM_CPPFLAGS += \
+ -fpie \
-DNAMED_LOCALSTATEDIR=\"${localstatedir}\" \
-DNAMED_SYSCONFDIR=\"${sysconfdir}\"
+AM_LDFLAGS += -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack
+
2022-09-14 18:51:22 +00:00
sbin_PROGRAMS = named
nodist_named_SOURCES = xsl.c