bind9.18/bind-9.5-PIE.patch
Petr Menšík ec071137db Fedora bind import
Import commit 91d60335005d38c4fa34b1cc3c835a0ec15983ed
2024-06-10 15:42:57 +02:00

18 lines
493 B
Diff

diff --git a/bin/named/Makefile.am b/bin/named/Makefile.am
index 57a023b..085f2f7 100644
--- a/bin/named/Makefile.am
+++ b/bin/named/Makefile.am
@@ -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
+
sbin_PROGRAMS = named
nodist_named_SOURCES = xsl.c