Adam Tkac bbeea4
--- bind-9.5.0b2/bin/named/Makefile.in.pie	2008-02-11 17:21:47.000000000 +0100
Adam Tkac bbeea4
+++ bind-9.5.0b2/bin/named/Makefile.in	2008-02-11 17:22:10.000000000 +0100
Adam Tkac bbeea4
@@ -100,8 +100,12 @@ HTMLPAGES =	named.html lwresd.html named
Adam Tkac bbeea4
 
Adam Tkac bbeea4
 MANOBJS =	${MANPAGES} ${HTMLPAGES}
Adam Tkac bbeea4
 
Adam Tkac bbeea4
+EXT_CFLAGS = -fpie
Adam Tkac bbeea4
+
Adam Tkac bbeea4
 @BIND9_MAKE_RULES@
Adam Tkac bbeea4
 
Adam Tkac bbeea4
+LDFLAGS += -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack
Adam Tkac bbeea4
+
Adam Tkac bbeea4
 main.@O@: main.c
Adam Tkac bbeea4
 	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
Adam Tkac bbeea4
 		-DVERSION=\"${VERSION}\" \
Adam Tkac bbeea4
diff -up bind-9.5.0b2/bin/named/unix/Makefile.in.pie bind-9.5.0b2/bin/named/unix/Makefile.in
Adam Tkac bbeea4
--- bind-9.5.0b2/bin/named/unix/Makefile.in.pie	2008-02-11 17:22:21.000000000 +0100
Adam Tkac bbeea4
+++ bind-9.5.0b2/bin/named/unix/Makefile.in	2008-02-11 17:23:00.000000000 +0100
Adam Tkac bbeea4
@@ -19,6 +19,8 @@ srcdir =	@srcdir@
Adam Tkac bbeea4
 VPATH =		@srcdir@
Adam Tkac bbeea4
 top_srcdir =	@top_srcdir@
Adam Tkac bbeea4
 
Adam Tkac bbeea4
+EXT_CFLAGS = -fpie
Adam Tkac bbeea4
+
Adam Tkac bbeea4
 @BIND9_MAKE_INCLUDES@
Adam Tkac bbeea4
 
Adam Tkac bbeea4
 CINCLUDES =	-I${srcdir}/include -I${srcdir}/../include \