summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-06-23 20:33:53 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-06-23 20:33:53 +0000
commitb93090522129c288d56ddf4bea5e83233629de1a (patch)
treea37ffb67c122c988360274426ea7099c44b7e8d8 /sys/arch/amd64
parent712728976129570c4ad1892fac2ab81d38d2bba1 (diff)
Stop using -traditional-cpp on gcc3/4 platforms.
Add CWARNFLAGS to the command line when using -xassembler-with-cpp. We are mostly interested in -Werror here.
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/conf/Makefile.amd647
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/amd64/conf/Makefile.amd64 b/sys/arch/amd64/conf/Makefile.amd64
index c4a7daf2ca1..acec5f7ac24 100644
--- a/sys/arch/amd64/conf/Makefile.amd64
+++ b/sys/arch/amd64/conf/Makefile.amd64
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.amd64,v 1.55 2013/03/30 07:25:20 tedu Exp $
+# $OpenBSD: Makefile.amd64,v 1.56 2013/06/23 20:33:51 miod Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -35,10 +35,13 @@ CMACHFLAGS+= -fno-builtin-printf -fno-builtin-snprintf \
.if ${IDENT:M-DNO_PROPOLICE}
CMACHFLAGS+= -fno-stack-protector
.endif
+.if ${IDENT:M-DSMALL_KERNEL}
+CMACHFLAGS+= -Wa,-n
+.endif
COPTS?= -O2
CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
-AFLAGS= -D_LOCORE -x assembler-with-cpp ${CMACHFLAGS}
+AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS}
LINKFLAGS= -Ttext 0xffffffff810001e0 -e start --warn-common -nopie
.if ${IDENT:M-DDDB_STRUCT}