Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/rescue Extra flags for static PIE
details: https://anonhg.NetBSD.org/src/rev/59937b059ce9
branches: trunk
changeset: 356703:59937b059ce9
user: christos <christos%NetBSD.org@localhost>
date: Sun Oct 08 15:02:33 2017 +0000
description:
Extra flags for static PIE
diffstat:
rescue/Makefile | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 91622580ea9b -r 59937b059ce9 rescue/Makefile
--- a/rescue/Makefile Sun Oct 08 15:00:40 2017 +0000
+++ b/rescue/Makefile Sun Oct 08 15:02:33 2017 +0000
@@ -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 @@
CRUNCHGEN_FLAGS=-d "${DBG}"
+.if ${MKSTATICPIE:Uno} == "yes"
+CRUNCHGEN_FLAGS+=-p
+CFLAGS+=-fPIE
+.endif
+
RESCUEDIR= /rescue
CRUNCHBIN= rescue
CRUNCHENV= RESCUEDIR=${RESCUEDIR}
Home |
Main Index |
Thread Index |
Old Index