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