summaryrefslogtreecommitdiff
path: root/sys/arch/i386/conf/Makefile.i386
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-05-13 22:45:12 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-05-13 22:45:12 +0000
commit0813bddc089dc1133696d2a9692366523cfa4015 (patch)
tree243d3845592d5261188bcdf116f9979bdc311805 /sys/arch/i386/conf/Makefile.i386
parentd4d555e924e183fd9573e15c39d88d4bdd146f4d (diff)
Add option NO_PROPOLICE, which explicitely disables the use of the propolice
stack protection when building kernels. Intended to be used on installation media, with tight space constraints - currently, only added where SMALL_KERNEL was already defined. Not thoroughly tested, but requested by deraadt.
Diffstat (limited to 'sys/arch/i386/conf/Makefile.i386')
-rw-r--r--sys/arch/i386/conf/Makefile.i3865
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/i386/conf/Makefile.i386 b/sys/arch/i386/conf/Makefile.i386
index 0321b5a69f5..0c659a5d96a 100644
--- a/sys/arch/i386/conf/Makefile.i386
+++ b/sys/arch/i386/conf/Makefile.i386
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.i386,v 1.35 2003/05/13 06:12:43 tedu Exp $
+# $OpenBSD: Makefile.i386,v 1.36 2003/05/13 22:45:10 miod Exp $
# $NetBSD: Makefile.i386,v 1.67 1996/05/11 16:12:11 mycroft Exp $
# Makefile for OpenBSD
@@ -44,6 +44,9 @@ CMACHFLAGS= -march=i486
.else
CMACHFLAGS=
.endif
+.if ${IDENT:M-DNO_PROPOLICE}
+CMACHFLAGS+= -fno-stack-protector
+.endif
COPTS?= -O2
CFLAGS= ${DEBUG} ${CDIAGFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}