Module Name:    src
Committed By:   christos
Date:           Sun Oct  8 15:02:33 UTC 2017

Modified Files:
        src/rescue: Makefile

Log Message:
Extra flags for static PIE


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/rescue/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/rescue/Makefile
diff -u src/rescue/Makefile:1.32 src/rescue/Makefile:1.33
--- src/rescue/Makefile:1.32	Sun May 21 11:28:41 2017
+++ src/rescue/Makefile	Sun Oct  8 11:02:33 2017
@@ -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}

Reply via email to