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