bind/pie_compile.diff

120 lines
2.4 KiB
Diff

--- bin/check/Makefile.in
+++ bin/check/Makefile.in 2005/06/17 13:01:56
@@ -55,8 +55,12 @@
MANOBJS = ${MANPAGES} ${HTMLPAGES}
+EXT_CFLAGS = -fPIE
+
@BIND9_MAKE_RULES@
+LDFLAGS += -pie
+
named-checkconf.@O@: named-checkconf.c
${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
-DVERSION=\"${VERSION}\" \
--- bin/dig/Makefile.in
+++ bin/dig/Makefile.in 2005/06/17 13:02:54
@@ -63,8 +63,12 @@
MANOBJS = ${MANPAGES} ${HTMLPAGES}
+EXT_CFLAGS = -fPIE
+
@BIND9_MAKE_RULES@
+LDFLAGS += -pie
+
dig@EXEEXT@: dig.@O@ dighost.@O@ ${UOBJS} ${DEPLIBS}
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
dig.@O@ dighost.@O@ ${UOBJS} ${LIBS}
--- bin/dnssec/Makefile.in
+++ bin/dnssec/Makefile.in 2005/06/17 13:03:30
@@ -51,8 +51,12 @@
MANOBJS = ${MANPAGES} ${HTMLPAGES}
+EXT_CFLAGS = -fPIE
+
@BIND9_MAKE_RULES@
+LDFLAGS += -pie
+
dnssec-keygen@EXEEXT@: dnssec-keygen.@O@ ${OBJS} ${DEPLIBS}
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
dnssec-keygen.@O@ ${OBJS} ${LIBS}
--- bin/Makefile.in
+++ bin/Makefile.in 2005/06/17 12:52:58
@@ -22,4 +22,8 @@
SUBDIRS = named rndc dig dnssec tests nsupdate check
TARGETS =
+EXT_CFLAGS = -fPIE
+
@BIND9_MAKE_RULES@
+
+LDFLAGS += -pie
--- bin/named/Makefile.in
+++ bin/named/Makefile.in 2005/06/17 12:41:37
@@ -91,8 +91,12 @@
MANOBJS = ${MANPAGES} ${HTMLPAGES}
+EXT_CFLAGS = -fPIE
+
@BIND9_MAKE_RULES@
+LDFLAGS += -pie
+
main.@O@: main.c
${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
-DVERSION=\"${VERSION}\" \
--- bin/named/unix/Makefile.in
+++ bin/named/unix/Makefile.in 2005/06/17 12:40:23
@@ -33,4 +33,6 @@
TARGETS = ${OBJS}
+EXT_CFLAGS = -fPIE
+
@BIND9_MAKE_RULES@
--- bin/nsupdate/Makefile.in
+++ bin/nsupdate/Makefile.in 2005/06/17 13:04:16
@@ -61,8 +61,12 @@
MANOBJS = ${MANPAGES} ${HTMLPAGES}
+EXT_CFLAGS = -fPIE
+
@BIND9_MAKE_RULES@
+LDFLAGS += -pie
+
nsupdate@EXEEXT@: nsupdate.@O@ ${UOBJS} ${DEPLIBS}
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ nsupdate.@O@ ${UOBJS} ${LIBS}
--- bin/rndc/Makefile.in
+++ bin/rndc/Makefile.in 2005/06/17 13:04:51
@@ -59,8 +59,12 @@
UOBJS = unix/os.@O@
+EXT_CFLAGS = -fPIE
+
@BIND9_MAKE_RULES@
+LDFLAGS += -pie
+
rndc.@O@: rndc.c
${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
-DVERSION=\"${VERSION}\" \
--- bin/rndc/unix/Makefile.in
+++ bin/rndc/unix/Makefile.in 2005/06/17 13:05:14
@@ -33,4 +33,6 @@
TARGETS = ${OBJS}
+EXT_CFLAGS = -fPIE
+
@BIND9_MAKE_RULES@