Build amd64 bootstrap with -ffreestanding.
authornaddy <naddy@openbsd.org>
Tue, 30 May 2017 15:02:22 +0000 (15:02 +0000)
committernaddy <naddy@openbsd.org>
Tue, 30 May 2017 15:02:22 +0000 (15:02 +0000)
"totally makes sense" kettenis@
ok deraadt@

sys/arch/amd64/stand/Makefile.inc

index 48004c4..d4f0fc1 100644 (file)
@@ -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=