Blame SOURCES/bind-9.5-PIE.patch

854838
diff --git a/bin/named/Makefile.in b/bin/named/Makefile.in
854838
index eb622d1..37053a7 100644
854838
--- a/bin/named/Makefile.in
854838
+++ b/bin/named/Makefile.in
854838
@@ -117,8 +117,12 @@ SRCS =		builtin.c config.c control.c \
854838
 		tkeyconf.c tsigconf.c zoneconf.c \
854838
 		${DLZDRIVER_SRCS} ${DBDRIVER_SRCS}
854838
 
854838
+EXT_CFLAGS = -fpie
854838
+
854838
 @BIND9_MAKE_RULES@
854838
 
854838
+LDFLAGS += -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack
854838
+
854838
 main.@O@: main.c
854838
 	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
854838
 		-DVERSION=\"${VERSION}\" \
854838
diff --git a/bin/named/unix/Makefile.in b/bin/named/unix/Makefile.in
854838
index fd9ca8d..f1c102c 100644
854838
--- a/bin/named/unix/Makefile.in
854838
+++ b/bin/named/unix/Makefile.in
854838
@@ -11,6 +11,8 @@ srcdir =	@srcdir@
854838
 VPATH =		@srcdir@
854838
 top_srcdir =	@top_srcdir@
854838
 
854838
+EXT_CFLAGS = -fpie
854838
+
854838
 @BIND9_MAKE_INCLUDES@
854838
 
854838
 CINCLUDES =	-I${srcdir}/include -I${srcdir}/../include \