From c59e34696e14eb62a6003d4067adc1a759b63c41 Mon Sep 17 00:00:00 2001 From: naddy Date: Tue, 30 May 2017 15:02:22 +0000 Subject: [PATCH] Build amd64 bootstrap with -ffreestanding. "totally makes sense" kettenis@ ok deraadt@ --- sys/arch/amd64/stand/Makefile.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/amd64/stand/Makefile.inc b/sys/arch/amd64/stand/Makefile.inc index 48004c4b4b5..d4f0fc183a9 100644 --- a/sys/arch/amd64/stand/Makefile.inc +++ b/sys/arch/amd64/stand/Makefile.inc @@ -1,7 +1,7 @@ -# $OpenBSD: Makefile.inc,v 1.15 2016/11/06 16:04:20 tb Exp $ +# $OpenBSD: Makefile.inc,v 1.16 2017/05/30 15:02:22 naddy Exp $ CFLAGS=${DEBUG} ${COPTS} -Os -Wall -Werror -CFLAGS+= -fno-stack-protector -DMDRANDOM +CFLAGS+= -ffreestanding -fno-stack-protector -DMDRANDOM CPPFLAGS+=-I${S} -I${SADIR}/libsa -I. -I${.CURDIR} SACFLAGS=-D_STANDALONE DEBUGFLAGS= -- 2.20.1