Blame SOURCES/bind-9.5-PIE.patch
|
|
b7523e |
diff --git a/bin/named/Makefile.in b/bin/named/Makefile.in
|
|
|
b7523e |
index eb622d1..37053a7 100644
|
|
|
b7523e |
--- a/bin/named/Makefile.in
|
|
|
b7523e |
+++ b/bin/named/Makefile.in
|
|
|
b7523e |
@@ -117,8 +117,12 @@ SRCS = builtin.c config.c control.c \
|
|
|
b7523e |
tkeyconf.c tsigconf.c zoneconf.c \
|
|
|
b7523e |
${DLZDRIVER_SRCS} ${DBDRIVER_SRCS}
|
|
|
b7523e |
|
|
|
b7523e |
+EXT_CFLAGS = -fpie
|
|
|
b7523e |
+
|
|
|
b7523e |
@BIND9_MAKE_RULES@
|
|
|
b7523e |
|
|
|
b7523e |
+LDFLAGS += -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack
|
|
|
b7523e |
+
|
|
|
b7523e |
main.@O@: main.c
|
|
|
b7523e |
${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
|
|
|
b7523e |
-DVERSION=\"${VERSION}\" \
|
|
|
b7523e |
diff --git a/bin/named/unix/Makefile.in b/bin/named/unix/Makefile.in
|
|
|
b7523e |
index fd9ca8d..f1c102c 100644
|
|
|
b7523e |
--- a/bin/named/unix/Makefile.in
|
|
|
b7523e |
+++ b/bin/named/unix/Makefile.in
|
|
|
b7523e |
@@ -11,6 +11,8 @@ srcdir = @srcdir@
|
|
|
b7523e |
VPATH = @srcdir@
|
|
|
b7523e |
top_srcdir = @top_srcdir@
|
|
|
b7523e |
|
|
|
b7523e |
+EXT_CFLAGS = -fpie
|
|
|
b7523e |
+
|
|
|
b7523e |
@BIND9_MAKE_INCLUDES@
|
|
|
b7523e |
|
|
|
b7523e |
CINCLUDES = -I${srcdir}/include -I${srcdir}/../include \
|