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