From c663f12618b302f68c98b42c239631ecedb4a1ec Mon Sep 17 00:00:00 2001 From: kettenis Date: Sat, 15 Apr 2017 18:58:45 +0000 Subject: [PATCH] Build sparc64 kernels with -ffreestanding. --- sys/arch/sparc64/conf/Makefile.sparc64 | 8 +++----- 1 file 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 -- 2.20.1