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