summaryrefslogtreecommitdiff
path: root/rescue
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2017-10-08 15:02:33 +0000
committerchristos <christos@NetBSD.org>2017-10-08 15:02:33 +0000
commitd100d42bdb7d28e2e2214b675f75cbc66a62d4d4 (patch)
tree3290f9a71c423843ee2299b0d1c5145b192903a3 /rescue
parent8195befaec8870d2bdb5de6b3be915db79658d18 (diff)
Extra flags for static PIE
Diffstat (limited to 'rescue')
-rw-r--r--rescue/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/rescue/Makefile b/rescue/Makefile
index 6c20e518c3d..c964deb0b34 100644
--- a/rescue/Makefile
+++ b/rescue/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2017/05/21 15:28:41 riastradh Exp $
+# $NetBSD: Makefile,v 1.33 2017/10/08 15:02:33 christos Exp $
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
@@ -11,6 +11,11 @@ DBG+= -Os
CRUNCHGEN_FLAGS=-d "${DBG}"
+.if ${MKSTATICPIE:Uno} == "yes"
+CRUNCHGEN_FLAGS+=-p
+CFLAGS+=-fPIE
+.endif
+
RESCUEDIR= /rescue
CRUNCHBIN= rescue
CRUNCHENV= RESCUEDIR=${RESCUEDIR}