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