summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-02-03 21:45:22 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-02-03 21:45:22 +0000
commit0897f5a9acb916d1644509d8843bff6e8eba9009 (patch)
tree1e53e97b5df6f75fb63a7e997b9e6e1a6df1ad71 /sys
parentf094bccdbc0b1467707677533e8287908130793b (diff)
Build the kernel with -mfix-loongson2f-btb. Requires up-to-date binutils.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/loongson/conf/Makefile.loongson5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/loongson/conf/Makefile.loongson b/sys/arch/loongson/conf/Makefile.loongson
index 134d7a5304a..e50fc1d2771 100644
--- a/sys/arch/loongson/conf/Makefile.loongson
+++ b/sys/arch/loongson/conf/Makefile.loongson
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.loongson,v 1.2 2010/01/03 14:17:26 miod Exp $
+# $OpenBSD: Makefile.loongson,v 1.3 2010/02/03 21:45:21 miod Exp $
# Makefile for OpenBSD
#
@@ -51,13 +51,14 @@ CDIAGFLAGS= -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes \
-Wno-uninitialized -Wno-format -Wno-main \
-Wstack-larger-than-2047 -Wvariable-decl
CMACHFLAGS+= -mno-abicalls ${ABI} -msoft-float \
+ -Wa,-mfix-loongson2f-btb \
-fno-builtin-printf -fno-builtin-log
.if ${IDENT:M-DNO_PROPOLICE}
CMACHFLAGS+= -fno-stack-protector
.endif
COPTS?= -O2
CFLAGS= ${DEBUG} ${CDIAGFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
-AFLAGS= -x assembler-with-cpp -mno-abicalls ${ABI} -D_LOCORE
+AFLAGS= -x assembler-with-cpp -D_LOCORE ${CMACHFLAGS}
STRIPFLAGS= -g -X -x
NORMAL_C_NOP= ${CC} ${CFLAGS} ${CPPFLAGS} -c $<