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