]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - bind/patches/bind-9.5-PIE.patch
bind: Rework package.
[people/ms/ipfire-3.x.git] / bind / patches / bind-9.5-PIE.patch
diff --git a/bind/patches/bind-9.5-PIE.patch b/bind/patches/bind-9.5-PIE.patch
new file mode 100644 (file)
index 0000000..a525b9b
--- /dev/null
@@ -0,0 +1,27 @@
+--- bind-9.5.0b2/bin/named/Makefile.in.pie     2008-02-11 17:21:47.000000000 +0100
++++ bind-9.5.0b2/bin/named/Makefile.in 2008-02-11 17:22:10.000000000 +0100
+@@ -100,8 +100,12 @@ HTMLPAGES =       named.html lwresd.html named
+ MANOBJS =     ${MANPAGES} ${HTMLPAGES}
++EXT_CFLAGS = -fpie
++
+ @BIND9_MAKE_RULES@
++LDFLAGS += -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack
++
+ main.@O@: main.c
+       ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
+               -DVERSION=\"${VERSION}\" \
+diff -up bind-9.5.0b2/bin/named/unix/Makefile.in.pie bind-9.5.0b2/bin/named/unix/Makefile.in
+--- bind-9.5.0b2/bin/named/unix/Makefile.in.pie        2008-02-11 17:22:21.000000000 +0100
++++ bind-9.5.0b2/bin/named/unix/Makefile.in    2008-02-11 17:23:00.000000000 +0100
+@@ -19,6 +19,8 @@ srcdir =     @srcdir@
+ VPATH =               @srcdir@
+ top_srcdir =  @top_srcdir@
++EXT_CFLAGS = -fpie
++
+ @BIND9_MAKE_INCLUDES@
+ CINCLUDES =   -I${srcdir}/include -I${srcdir}/../include \