jvdias 207484
--- bind-9.3.2b1/make/rules.in.PIE	2005-05-12 17:36:17.000000000 -0400
jvdias 207484
+++ bind-9.3.2b1/make/rules.in	2005-10-06 20:04:36.000000000 -0400
jvdias 207484
@@ -118,6 +118,9 @@
jvdias 207484
 .c.@O@:
jvdias 207484
 	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -c $<
jvdias 207484
 
jvdias 207484
+.c.o:
jvdias 207484
+	${CC} ${ALL_CFLAGS} -c $<
jvdias 207484
+
jvdias 207484
 SHELL = @SHELL@
jvdias 207484
 LIBTOOL = @LIBTOOL@
jvdias 207484
 LIBTOOL_MODE_COMPILE = ${LIBTOOL} @LIBTOOL_MODE_COMPILE@
jvdias 207484
--- bind-9.3.2b1/bin/dnssec/Makefile.in.PIE	2005-05-01 20:25:54.000000000 -0400
jvdias 207484
+++ bind-9.3.2b1/bin/dnssec/Makefile.in	2005-10-06 20:04:36.000000000 -0400
jvdias 207484
@@ -41,7 +41,7 @@
jvdias 207484
 # Alphabetically
jvdias 207484
 TARGETS =	dnssec-keygen@EXEEXT@ dnssec-signzone@EXEEXT@
jvdias 207484
 
jvdias 207484
-OBJS =		dnssectool.@O@
jvdias 207484
+OBJS =		dnssectool.o
jvdias 207484
 
jvdias 207484
 SRCS =		dnssec-keygen.c dnssec-signzone.c dnssectool.c
jvdias 207484
 
jvdias 207484
@@ -51,19 +51,25 @@
jvdias 207484
 
jvdias 207484
 MANOBJS =	${MANPAGES} ${HTMLPAGES}
jvdias 207484
 
jvdias 207484
+EXT_CFLAGS = -fPIE
jvdias 207484
+
jvdias 207484
 @BIND9_MAKE_RULES@
jvdias 207484
 
jvdias 207484
-dnssec-keygen@EXEEXT@: dnssec-keygen.@O@ ${OBJS} ${DEPLIBS}
jvdias 207484
+LDFLAGS   += -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack
jvdias 207484
+
jvdias 207484
+.SUFFIXES: .c .o
jvdias 207484
+
jvdias 207484
+dnssec-keygen@EXEEXT@: dnssec-keygen.o ${OBJS} ${DEPLIBS}
jvdias 207484
 	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
jvdias 207484
-	dnssec-keygen.@O@ ${OBJS} ${LIBS}
jvdias 207484
+	dnssec-keygen.o ${OBJS} ${LIBS}
jvdias 207484
 
jvdias 207484
-dnssec-signzone.@O@: dnssec-signzone.c
jvdias 207484
-	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -DVERSION=\"${VERSION}\" \
jvdias 207484
+dnssec-signzone.o: dnssec-signzone.c
jvdias 207484
+	${CC} ${ALL_CFLAGS} -DVERSION=\"${VERSION}\" \
jvdias 207484
 		-c ${srcdir}/dnssec-signzone.c
jvdias 207484
 
jvdias 207484
-dnssec-signzone@EXEEXT@: dnssec-signzone.@O@ ${OBJS} ${DEPLIBS}
jvdias 207484
+dnssec-signzone@EXEEXT@: dnssec-signzone.o ${OBJS} ${DEPLIBS}
jvdias 207484
 	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
jvdias 207484
-	dnssec-signzone.@O@ ${OBJS} ${LIBS}
jvdias 207484
+	dnssec-signzone.o ${OBJS} ${LIBS}
jvdias 207484
 
jvdias 207484
 doc man:: ${MANOBJS}
jvdias 207484
 
jvdias 207484
--- bind-9.3.2b1/bin/named/Makefile.in.PIE	2004-09-06 17:47:25.000000000 -0400
jvdias 207484
+++ bind-9.3.2b1/bin/named/Makefile.in	2005-10-06 20:04:36.000000000 -0400
jvdias 207484
@@ -63,17 +63,17 @@
jvdias 207484
 
jvdias 207484
 TARGETS =	named@EXEEXT@ lwresd@EXEEXT@
jvdias 207484
 
jvdias 207484
-OBJS =		aclconf.@O@ builtin.@O@ client.@O@ config.@O@ control.@O@ \
jvdias 207484
-		controlconf.@O@ interfacemgr.@O@ \
jvdias 207484
-		listenlist.@O@ log.@O@ logconf.@O@ main.@O@ notify.@O@ \
jvdias 207484
-		query.@O@ server.@O@ sortlist.@O@ \
jvdias 207484
-		tkeyconf.@O@ tsigconf.@O@ update.@O@ xfrout.@O@ \
jvdias 207484
-		zoneconf.@O@ \
jvdias 207484
-		lwaddr.@O@ lwresd.@O@ lwdclient.@O@ lwderror.@O@ lwdgabn.@O@ \
jvdias 207484
-		lwdgnba.@O@ lwdgrbn.@O@ lwdnoop.@O@ lwsearch.@O@ \
jvdias 207484
+OBJS =		aclconf.o builtin.o client.o config.o control.o \
jvdias 207484
+		controlconf.o interfacemgr.o \
jvdias 207484
+		listenlist.o log.o logconf.o main.o notify.o \
jvdias 207484
+		query.o server.o sortlist.o \
jvdias 207484
+		tkeyconf.o tsigconf.o update.o xfrout.o \
jvdias 207484
+		zoneconf.o \
jvdias 207484
+		lwaddr.o lwresd.o lwdclient.o lwderror.o lwdgabn.o \
jvdias 207484
+		lwdgnba.o lwdgrbn.o lwdnoop.o lwsearch.o \
jvdias 207484
 		$(DBDRIVER_OBJS)
jvdias 207484
 
jvdias 207484
-UOBJS =		unix/os.@O@
jvdias 207484
+UOBJS =		unix/os.o
jvdias 207484
 
jvdias 207484
 SRCS =		aclconf.c builtin.c client.c config.c control.c \
jvdias 207484
 		controlconf.c interfacemgr.c \
jvdias 207484
@@ -91,16 +91,22 @@
jvdias 207484
 
jvdias 207484
 MANOBJS =	${MANPAGES} ${HTMLPAGES}
jvdias 207484
 
jvdias 207484
+EXT_CFLAGS = -fPIE
jvdias 207484
+
jvdias 207484
 @BIND9_MAKE_RULES@
jvdias 207484
 
jvdias 207484
-main.@O@: main.c
jvdias 207484
-	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
jvdias 207484
+LDFLAGS   += -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack
jvdias 207484
+
jvdias 207484
+.SUFFIXES: .c .o
jvdias 207484
+
jvdias 207484
+main.o: main.c
jvdias 207484
+	${CC} ${ALL_CFLAGS} \
jvdias 207484
 		-DVERSION=\"${VERSION}\" \
jvdias 207484
 		-DNS_LOCALSTATEDIR=\"${localstatedir}\" \
jvdias 207484
 		-DNS_SYSCONFDIR=\"${sysconfdir}\" -c ${srcdir}/main.c
jvdias 207484
 
jvdias 207484
-config.@O@: config.c
jvdias 207484
-	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
jvdias 207484
+config.o: config.c
jvdias 207484
+	${CC} ${ALL_CFLAGS} \
jvdias 207484
 		-DVERSION=\"${VERSION}\" \
jvdias 207484
 		-DNS_LOCALSTATEDIR=\"${localstatedir}\" \
jvdias 207484
 		-c ${srcdir}/config.c
jvdias 207484
--- bind-9.3.2b1/bin/named/unix/Makefile.in.PIE	2004-03-08 04:04:15.000000000 -0500
jvdias 207484
+++ bind-9.3.2b1/bin/named/unix/Makefile.in	2005-10-06 20:04:36.000000000 -0400
jvdias 207484
@@ -27,10 +27,14 @@
jvdias 207484
 CDEFINES =
jvdias 207484
 CWARNINGS =
jvdias 207484
 
jvdias 207484
-OBJS =		os.@O@
jvdias 207484
+OBJS =		os.o
jvdias 207484
 
jvdias 207484
 SRCS =		os.c
jvdias 207484
 
jvdias 207484
 TARGETS =	${OBJS}
jvdias 207484
 
jvdias 207484
+EXT_CFLAGS = -fPIE
jvdias 207484
+
jvdias 207484
 @BIND9_MAKE_RULES@
jvdias 207484
+
jvdias 207484
+.SUFFIXES: .c .o
jvdias 207484
\ No newline at end of file
jvdias 207484
--- bind-9.3.2b1/bin/check/Makefile.in.PIE	2004-07-20 03:01:48.000000000 -0400
jvdias 207484
+++ bind-9.3.2b1/bin/check/Makefile.in	2005-10-06 20:04:36.000000000 -0400
jvdias 207484
@@ -55,27 +55,33 @@
jvdias 207484
 
jvdias 207484
 MANOBJS =	${MANPAGES} ${HTMLPAGES}
jvdias 207484
 
jvdias 207484
+EXT_CFLAGS = -fPIE
jvdias 207484
+
jvdias 207484
 @BIND9_MAKE_RULES@
jvdias 207484
 
jvdias 207484
-named-checkconf.@O@: named-checkconf.c
jvdias 207484
-	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
jvdias 207484
+LDFLAGS   += -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack
jvdias 207484
+
jvdias 207484
+.SUFFIXES: .c .o
jvdias 207484
+
jvdias 207484
+named-checkconf.o: named-checkconf.c
jvdias 207484
+	${CC} ${ALL_CFLAGS} \
jvdias 207484
 		-DVERSION=\"${VERSION}\" \
jvdias 207484
 		-c ${srcdir}/named-checkconf.c
jvdias 207484
 
jvdias 207484
-named-checkzone.@O@: named-checkzone.c
jvdias 207484
-	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
jvdias 207484
+named-checkzone.o: named-checkzone.c
jvdias 207484
+	${CC} ${ALL_CFLAGS} \
jvdias 207484
 		-DVERSION=\"${VERSION}\" \
jvdias 207484
 		-c ${srcdir}/named-checkzone.c
jvdias 207484
 
jvdias 207484
-named-checkconf@EXEEXT@: named-checkconf.@O@ check-tool.@O@ ${ISCDEPLIBS} \
jvdias 207484
+named-checkconf@EXEEXT@: named-checkconf.o check-tool.o ${ISCDEPLIBS} \
jvdias 207484
 		${ISCCFGDEPLIBS} ${BIND9DEPLIBS}
jvdias 207484
 	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
jvdias 207484
-	named-checkconf.@O@ check-tool.@O@ ${BIND9LIBS} ${ISCCFGLIBS} \
jvdias 207484
+	named-checkconf.o check-tool.o ${BIND9LIBS} ${ISCCFGLIBS} \
jvdias 207484
 	${DNSLIBS} ${ISCLIBS} ${LIBS}
jvdias 207484
 
jvdias 207484
-named-checkzone@EXEEXT@: named-checkzone.@O@ check-tool.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
jvdias 207484
+named-checkzone@EXEEXT@: named-checkzone.o check-tool.o ${ISCDEPLIBS} ${DNSDEPLIBS}
jvdias 207484
 	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
jvdias 207484
-	named-checkzone.@O@ check-tool.@O@ ${DNSLIBS} ${ISCLIBS} ${LIBS}
jvdias 207484
+	named-checkzone.o check-tool.o ${DNSLIBS} ${ISCLIBS} ${LIBS}
jvdias 207484
 
jvdias 207484
 doc man:: ${MANOBJS}
jvdias 207484
 
jvdias 207484
--- bind-9.3.2b1/bin/nsupdate/Makefile.in.PIE	2004-07-20 03:01:49.000000000 -0400
jvdias 207484
+++ bind-9.3.2b1/bin/nsupdate/Makefile.in	2005-10-06 20:04:36.000000000 -0400
jvdias 207484
@@ -49,7 +49,7 @@
jvdias 207484
 
jvdias 207484
 TARGETS =	nsupdate@EXEEXT@
jvdias 207484
 
jvdias 207484
-OBJS =		nsupdate.@O@
jvdias 207484
+OBJS =		nsupdate.o
jvdias 207484
 
jvdias 207484
 UOBJS =
jvdias 207484
 
jvdias 207484
@@ -61,10 +61,16 @@
jvdias 207484
 
jvdias 207484
 MANOBJS =	${MANPAGES} ${HTMLPAGES}
jvdias 207484
 
jvdias 207484
+EXT_CFLAGS = -fPIE
jvdias 207484
+
jvdias 207484
 @BIND9_MAKE_RULES@
jvdias 207484
 
jvdias 207484
-nsupdate@EXEEXT@: nsupdate.@O@ ${UOBJS} ${DEPLIBS}
jvdias 207484
-	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ nsupdate.@O@ ${UOBJS} ${LIBS}
jvdias 207484
+LDFLAGS   += -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack
jvdias 207484
+
jvdias 207484
+.SUFFIXES: .c .o
jvdias 207484
+
jvdias 207484
+nsupdate@EXEEXT@: nsupdate.o ${UOBJS} ${DEPLIBS}
jvdias 207484
+	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ nsupdate.o ${UOBJS} ${LIBS}
jvdias 207484
 
jvdias 207484
 doc man:: ${MANOBJS}
jvdias 207484
 
jvdias 207484
--- bind-9.3.2b1/bin/rndc/Makefile.in.PIE	2004-07-20 03:01:50.000000000 -0400
jvdias 207484
+++ bind-9.3.2b1/bin/rndc/Makefile.in	2005-10-06 20:05:10.000000000 -0400
jvdias 207484
@@ -57,28 +57,34 @@
jvdias 207484
 
jvdias 207484
 MANOBJS =	${MANPAGES} ${HTMLPAGES}
jvdias 207484
 
jvdias 207484
-UOBJS =		unix/os.@O@
jvdias 207484
+UOBJS =		unix/os.o
jvdias 207484
+
jvdias 207484
+EXT_CFLAGS = -fPIE
jvdias 207484
 
jvdias 207484
 @BIND9_MAKE_RULES@
jvdias 207484
 
jvdias 207484
-rndc.@O@: rndc.c
jvdias 207484
-	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
jvdias 207484
+LDFLAGS   += -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack
jvdias 207484
+
jvdias 207484
+.SUFFIXES: .c .o
jvdias 207484
+
jvdias 207484
+rndc.o: rndc.c
jvdias 207484
+	${CC} ${ALL_CFLAGS} \
jvdias 207484
 		-DVERSION=\"${VERSION}\" \
jvdias 207484
 		-DRNDC_CONFFILE=\"${sysconfdir}/rndc.conf\" \
jvdias 207484
 		-DRNDC_KEYFILE=\"${sysconfdir}/rndc.key\" \
jvdias 207484
 		-c ${srcdir}/rndc.c
jvdias 207484
 
jvdias 207484
-rndc-confgen.@O@: rndc-confgen.c
jvdias 207484
-	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
jvdias 207484
+rndc-confgen.o: rndc-confgen.c
jvdias 207484
+	${CC} ${ALL_CFLAGS} \
jvdias 207484
 		-DRNDC_KEYFILE=\"${sysconfdir}/rndc.key\" \
jvdias 207484
 		-c ${srcdir}/rndc-confgen.c
jvdias 207484
 
jvdias 207484
-rndc@EXEEXT@: rndc.@O@ util.@O@ ${RNDCDEPLIBS}
jvdias 207484
-	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ rndc.@O@ util.@O@ \
jvdias 207484
+rndc@EXEEXT@: rndc.o util.o ${RNDCDEPLIBS}
jvdias 207484
+	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ rndc.o util.o \
jvdias 207484
 		${RNDCLIBS}
jvdias 207484
 
jvdias 207484
-rndc-confgen@EXEEXT@: rndc-confgen.@O@ util.@O@ ${UOBJS} ${CONFDEPLIBS} 
jvdias 207484
-	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ rndc-confgen.@O@ util.@O@ \
jvdias 207484
+rndc-confgen@EXEEXT@: rndc-confgen.o util.o ${UOBJS} ${CONFDEPLIBS} 
jvdias 207484
+	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ rndc-confgen.o util.o \
jvdias 207484
 		${UOBJS} ${CONFLIBS}
jvdias 207484
 
jvdias 207484
 doc man:: ${MANOBJS}
jvdias 207484
--- bind-9.3.2b1/bin/rndc/unix/Makefile.in.PIE	2004-03-07 23:04:24.000000000 -0500
jvdias 207484
+++ bind-9.3.2b1/bin/rndc/unix/Makefile.in	2005-10-06 20:04:36.000000000 -0400
jvdias 207484
@@ -27,10 +27,16 @@
jvdias 207484
 CDEFINES =
jvdias 207484
 CWARNINGS =
jvdias 207484
 
jvdias 207484
-OBJS =		os.@O@
jvdias 207484
+OBJS =		os.o
jvdias 207484
 
jvdias 207484
 SRCS =		os.c
jvdias 207484
 
jvdias 207484
 TARGETS =	${OBJS}
jvdias 207484
 
jvdias 207484
+EXT_CFLAGS = -fPIE
jvdias 207484
+
jvdias 207484
 @BIND9_MAKE_RULES@
jvdias 207484
+
jvdias 207484
+LDFLAGS   += -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack
jvdias 207484
+
jvdias 207484
+.SUFFIXES: .c .o
jvdias 207484
--- bind-9.3.2b1/bin/dig/Makefile.in.PIE	2004-08-18 19:25:57.000000000 -0400
jvdias 207484
+++ bind-9.3.2b1/bin/dig/Makefile.in	2005-10-06 20:04:36.000000000 -0400
jvdias 207484
@@ -51,7 +51,7 @@
jvdias 207484
 
jvdias 207484
 TARGETS =	dig@EXEEXT@ host@EXEEXT@ nslookup@EXEEXT@
jvdias 207484
 
jvdias 207484
-OBJS =		dig.@O@ dighost.@O@ host.@O@ nslookup.@O@
jvdias 207484
+OBJS =		dig.o dighost.o host.o nslookup.o
jvdias 207484
 
jvdias 207484
 UOBJS =
jvdias 207484
 
jvdias 207484
@@ -63,19 +63,25 @@
jvdias 207484
 
jvdias 207484
 MANOBJS =	${MANPAGES} ${HTMLPAGES}
jvdias 207484
 
jvdias 207484
+EXT_CFLAGS = -fPIE
jvdias 207484
+
jvdias 207484
 @BIND9_MAKE_RULES@
jvdias 207484
 
jvdias 207484
-dig@EXEEXT@: dig.@O@ dighost.@O@ ${UOBJS} ${DEPLIBS}
jvdias 207484
+LDFLAGS   += -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack
jvdias 207484
+
jvdias 207484
+.SUFFIXES: .c .o
jvdias 207484
+
jvdias 207484
+dig@EXEEXT@: dig.o dighost.o ${UOBJS} ${DEPLIBS}
jvdias 207484
 	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
jvdias 207484
-	dig.@O@ dighost.@O@ ${UOBJS} ${LIBS}
jvdias 207484
+	dig.o dighost.o ${UOBJS} ${LIBS}
jvdias 207484
 
jvdias 207484
-host@EXEEXT@: host.@O@ dighost.@O@ ${UOBJS} ${DEPLIBS}
jvdias 207484
+host@EXEEXT@: host.o dighost.o ${UOBJS} ${DEPLIBS}
jvdias 207484
 	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
jvdias 207484
-	host.@O@ dighost.@O@ ${UOBJS} ${LIBS}
jvdias 207484
+	host.o dighost.o ${UOBJS} ${LIBS}
jvdias 207484
 
jvdias 207484
-nslookup@EXEEXT@: nslookup.@O@ dighost.@O@ ${UOBJS} ${DEPLIBS}
jvdias 207484
+nslookup@EXEEXT@: nslookup.o dighost.o ${UOBJS} ${DEPLIBS}
jvdias 207484
 	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
jvdias 207484
-	nslookup.@O@ dighost.@O@ ${UOBJS} ${LIBS}
jvdias 207484
+	nslookup.o dighost.o ${UOBJS} ${LIBS}
jvdias 207484
 
jvdias 207484
 doc man:: ${MANOBJS}
jvdias 207484