summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2017-04-15 18:58:46 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2017-04-15 18:58:46 +0000
commit26b254c08bafb4ba2eb77c23a1418dc792e973c2 (patch)
treee104177a05dd498321c8bd54b72b65809df00bfe /sys
parent2f9b31d5b9534194261f67d9eca09194395b15de (diff)
Build sparc64 kernels with -ffreestanding.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc64/conf/Makefile.sparc648
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/arch/sparc64/conf/Makefile.sparc64 b/sys/arch/sparc64/conf/Makefile.sparc64
index 5663470996a..28ffda763f2 100644
--- a/sys/arch/sparc64/conf/Makefile.sparc64
+++ b/sys/arch/sparc64/conf/Makefile.sparc64
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.sparc64,v 1.80 2016/11/29 09:08:34 mpi Exp $
+# $OpenBSD: Makefile.sparc64,v 1.81 2017/04/15 18:58:45 kettenis Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -24,13 +24,11 @@ _archdir?= $S/arch/${_arch}
INCLUDES= -nostdinc -I$S -I${.OBJDIR} -I$S/arch
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -MD -MP
CWARNFLAGS= -Werror -Wall -Wimplicit-function-declaration \
- -Wno-main -Wno-uninitialized -Wno-pointer-sign \
+ -Wno-uninitialized -Wno-pointer-sign \
-Wframe-larger-than=2047
CMACHFLAGS= -Wa,-Av9b, -mno-fpu
-CMACHFLAGS+= -fno-builtin-printf -fno-builtin-snprintf \
- -fno-builtin-vsnprintf -fno-builtin-log \
- -fno-builtin-log2 -fno-builtin-malloc ${NOPIE_FLAGS}
+CMACHFLAGS+= -ffreestanding ${NOPIE_FLAGS}
.if ${IDENT:M-DNO_PROPOLICE}
CMACHFLAGS+= -fno-stack-protector
.endif