Build sparc64 kernels with -ffreestanding.
authorkettenis <kettenis@openbsd.org>
Sat, 15 Apr 2017 18:58:45 +0000 (18:58 +0000)
committerkettenis <kettenis@openbsd.org>
Sat, 15 Apr 2017 18:58:45 +0000 (18:58 +0000)
sys/arch/sparc64/conf/Makefile.sparc64

index 5663470..28ffda7 100644 (file)
@@ -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