Sun Oct 8 15:02:33 2017 UTC ()
Extra flags for static PIE


(christos)
diff -r1.32 -r1.33 src/rescue/Makefile

cvs diff -r1.32 -r1.33 src/rescue/Makefile (expand / switch to unified diff)

--- src/rescue/Makefile 2017/05/21 15:28:41 1.32
+++ src/rescue/Makefile 2017/10/08 15:02:33 1.33
@@ -1,26 +1,31 @@ @@ -1,26 +1,31 @@
1# $NetBSD: Makefile,v 1.32 2017/05/21 15:28:41 riastradh Exp $ 1# $NetBSD: Makefile,v 1.33 2017/10/08 15:02:33 christos Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" 4.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
5 5
6WARNS= 1 6WARNS= 1
7# XXX 7# XXX
8.if ${MACHINE_ARCH} != "m68000" 8.if ${MACHINE_ARCH} != "m68000"
9DBG+= -Os 9DBG+= -Os
10.endif 10.endif
11 11
12CRUNCHGEN_FLAGS=-d "${DBG}" 12CRUNCHGEN_FLAGS=-d "${DBG}"
13 13
 14.if ${MKSTATICPIE:Uno} == "yes"
 15CRUNCHGEN_FLAGS+=-p
 16CFLAGS+=-fPIE
 17.endif
 18
14RESCUEDIR= /rescue 19RESCUEDIR= /rescue
15CRUNCHBIN= rescue 20CRUNCHBIN= rescue
16CRUNCHENV= RESCUEDIR=${RESCUEDIR} 21CRUNCHENV= RESCUEDIR=${RESCUEDIR}
17SMALLPROG= 0 22SMALLPROG= 0
18LISTS= ${.CURDIR}/list 23LISTS= ${.CURDIR}/list
19TARGETDIR= ${DESTDIR}/rescue 24TARGETDIR= ${DESTDIR}/rescue
20PARSELISTENV+= TARGETDIR=${TARGETDIR:Q} 25PARSELISTENV+= TARGETDIR=${TARGETDIR:Q}
21 26
22.for f in ldconfig 27.for f in ldconfig
23PROG_${f}!= cd ${NETBSDSRCDIR}/sbin/${f} && ${MAKE} -V PROG 28PROG_${f}!= cd ${NETBSDSRCDIR}/sbin/${f} && ${MAKE} -V PROG
24.if (${PROG_${f}} != "") 29.if (${PROG_${f}} != "")
25LISTS+= ${.CURDIR}/list.${f} 30LISTS+= ${.CURDIR}/list.${f}
26.endif 31.endif