summaryrefslogtreecommitdiff
path: root/sys/arch/loongson/conf
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2017-03-18 17:31:32 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2017-03-18 17:31:32 +0000
commitf844ea0270ca1ff4c089db7d304b5ab5991df528 (patch)
tree01ddbdb87ffb181f0ceda99d8e7ea8dda328da6a /sys/arch/loongson/conf
parent8d06fd43744c2fa9082056b3a677e3d63984e7f0 (diff)
Build mips64 kernels with -ffreestanding.
OK kettenis@
Diffstat (limited to 'sys/arch/loongson/conf')
-rw-r--r--sys/arch/loongson/conf/Makefile.loongson8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/arch/loongson/conf/Makefile.loongson b/sys/arch/loongson/conf/Makefile.loongson
index 77556ad90ac..5091dfc315a 100644
--- a/sys/arch/loongson/conf/Makefile.loongson
+++ b/sys/arch/loongson/conf/Makefile.loongson
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.loongson,v 1.53 2016/11/29 09:08:34 mpi Exp $
+# $OpenBSD: Makefile.loongson,v 1.54 2017/03/18 17:31:31 visa Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -31,13 +31,11 @@ _archdir?= $S/arch/${_arch}
INCLUDES= -nostdinc -I$S -I${.OBJDIR} -I$S/arch
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__ -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= -mno-abicalls ${ABI} -msoft-float -Wa,-mfix-loongson2f-btb -G 0
-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