diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-06-23 20:33:53 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-06-23 20:33:53 +0000 |
commit | b93090522129c288d56ddf4bea5e83233629de1a (patch) | |
tree | a37ffb67c122c988360274426ea7099c44b7e8d8 | |
parent | 712728976129570c4ad1892fac2ab81d38d2bba1 (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.
-rw-r--r-- | sys/arch/alpha/conf/Makefile.alpha | 4 | ||||
-rw-r--r-- | sys/arch/amd64/conf/Makefile.amd64 | 7 | ||||
-rw-r--r-- | sys/arch/armish/conf/Makefile.armish | 4 | ||||
-rw-r--r-- | sys/arch/aviion/conf/Makefile.aviion | 4 | ||||
-rw-r--r-- | sys/arch/beagle/conf/Makefile.beagle | 4 | ||||
-rw-r--r-- | sys/arch/hp300/conf/Makefile.hp300 | 4 | ||||
-rw-r--r-- | sys/arch/hppa/conf/Makefile.hppa | 4 | ||||
-rw-r--r-- | sys/arch/hppa64/conf/Makefile.hppa64 | 4 | ||||
-rw-r--r-- | sys/arch/i386/conf/Makefile.i386 | 4 | ||||
-rw-r--r-- | sys/arch/landisk/conf/Makefile.landisk | 4 | ||||
-rw-r--r-- | sys/arch/loongson/conf/Makefile.loongson | 4 | ||||
-rw-r--r-- | sys/arch/luna88k/conf/Makefile.luna88k | 4 | ||||
-rw-r--r-- | sys/arch/mvme68k/conf/Makefile.mvme68k | 4 | ||||
-rw-r--r-- | sys/arch/mvme88k/conf/Makefile.mvme88k | 4 | ||||
-rw-r--r-- | sys/arch/octeon/conf/Makefile.octeon | 4 | ||||
-rw-r--r-- | sys/arch/sgi/conf/Makefile.sgi | 4 | ||||
-rw-r--r-- | sys/arch/solbourne/conf/Makefile.solbourne | 4 | ||||
-rw-r--r-- | sys/arch/sparc/conf/Makefile.sparc | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/conf/Makefile.sparc64 | 4 | ||||
-rw-r--r-- | sys/arch/vax/conf/Makefile.vax | 5 | ||||
-rw-r--r-- | sys/arch/zaurus/conf/Makefile.zaurus | 4 |
21 files changed, 46 insertions, 42 deletions
diff --git a/sys/arch/alpha/conf/Makefile.alpha b/sys/arch/alpha/conf/Makefile.alpha index 0d1c918265c..7b6f4862536 100644 --- a/sys/arch/alpha/conf/Makefile.alpha +++ b/sys/arch/alpha/conf/Makefile.alpha @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.alpha,v 1.80 2013/03/30 07:25:20 tedu Exp $ +# $OpenBSD: Makefile.alpha,v 1.81 2013/06/23 20:33:51 miod Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -37,7 +37,7 @@ CMACHFLAGS+= -fno-stack-protector COPTS?= -O2 CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE} -AFLAGS= -D_LOCORE -x assembler-with-cpp -traditional-cpp ${CMACHFLAGS} +AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS} LINKFLAGS= -T ${_machdir}/conf/ld.script -X -N -G 4 --warn-common -nopie .if ${IDENT:M-DDDB_STRUCT} 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} diff --git a/sys/arch/armish/conf/Makefile.armish b/sys/arch/armish/conf/Makefile.armish index 1fa17987a6b..3fab2617a46 100644 --- a/sys/arch/armish/conf/Makefile.armish +++ b/sys/arch/armish/conf/Makefile.armish @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.armish,v 1.45 2013/03/30 07:25:20 tedu Exp $ +# $OpenBSD: Makefile.armish,v 1.46 2013/06/23 20:33:51 miod Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -37,7 +37,7 @@ CMACHFLAGS+= -fno-stack-protector 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= -T ldscript --warn-common -nopie .if ${IDENT:M-DDDB_STRUCT} diff --git a/sys/arch/aviion/conf/Makefile.aviion b/sys/arch/aviion/conf/Makefile.aviion index 456039fce64..4a4c87701dc 100644 --- a/sys/arch/aviion/conf/Makefile.aviion +++ b/sys/arch/aviion/conf/Makefile.aviion @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.aviion,v 1.40 2013/03/30 07:25:20 tedu Exp $ +# $OpenBSD: Makefile.aviion,v 1.41 2013/06/23 20:33:51 miod Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -37,7 +37,7 @@ CMACHFLAGS+= -fno-stack-protector COPTS?= -O2 CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE} -AFLAGS= -D_LOCORE -x assembler-with-cpp -traditional-cpp ${CMACHFLAGS} +AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS} LINKFLAGS= -Ttext 0x1000 -e __start -X -N --warn-common -nopie .if ${IDENT:M-DDDB_STRUCT} diff --git a/sys/arch/beagle/conf/Makefile.beagle b/sys/arch/beagle/conf/Makefile.beagle index 5e915f734e1..6ff4082a48a 100644 --- a/sys/arch/beagle/conf/Makefile.beagle +++ b/sys/arch/beagle/conf/Makefile.beagle @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.beagle,v 1.43 2013/05/31 19:24:16 rapha Exp $ +# $OpenBSD: Makefile.beagle,v 1.44 2013/06/23 20:33:51 miod Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -37,7 +37,7 @@ CMACHFLAGS+= -fno-stack-protector 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= -T ldscript --warn-common -nopie .if ${IDENT:M-DDDB_STRUCT} diff --git a/sys/arch/hp300/conf/Makefile.hp300 b/sys/arch/hp300/conf/Makefile.hp300 index fb6a5ad8979..7b98bdb2afe 100644 --- a/sys/arch/hp300/conf/Makefile.hp300 +++ b/sys/arch/hp300/conf/Makefile.hp300 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.hp300,v 1.81 2013/03/30 07:25:20 tedu Exp $ +# $OpenBSD: Makefile.hp300,v 1.82 2013/06/23 20:33:51 miod Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -37,7 +37,7 @@ CMACHFLAGS+= -fno-stack-protector COPTS?= -O2 CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE} -AFLAGS= -D_LOCORE -x assembler-with-cpp -traditional-cpp ${CMACHFLAGS} +AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS} LINKFLAGS= -Ttext 0 -e start --warn-common -nopie .if ${IDENT:M-DDDB_STRUCT} diff --git a/sys/arch/hppa/conf/Makefile.hppa b/sys/arch/hppa/conf/Makefile.hppa index a4e0d0045a1..28da337f2db 100644 --- a/sys/arch/hppa/conf/Makefile.hppa +++ b/sys/arch/hppa/conf/Makefile.hppa @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.hppa,v 1.72 2013/03/30 07:25:20 tedu Exp $ +# $OpenBSD: Makefile.hppa,v 1.73 2013/06/23 20:33:51 miod Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -35,7 +35,7 @@ CMACHFLAGS+= -fno-stack-protector COPTS?= -Os CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE} -AFLAGS= -D_LOCORE -x assembler-with-cpp ${CMACHFLAGS} +AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS} LINKFLAGS= -X -T ${_machdir}/conf/ld.script -Ttext 80000 --warn-common \ -nopie diff --git a/sys/arch/hppa64/conf/Makefile.hppa64 b/sys/arch/hppa64/conf/Makefile.hppa64 index dcda271413a..b11aae79d99 100644 --- a/sys/arch/hppa64/conf/Makefile.hppa64 +++ b/sys/arch/hppa64/conf/Makefile.hppa64 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.hppa64,v 1.44 2013/03/30 07:25:20 tedu Exp $ +# $OpenBSD: Makefile.hppa64,v 1.45 2013/06/23 20:33:51 miod Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -35,7 +35,7 @@ CMACHFLAGS+= -fno-stack-protector COPTS?= -Os CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE} -AFLAGS= -D_LOCORE -x assembler-with-cpp -traditional-cpp ${CMACHFLAGS} +AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS} LINKFLAGS= -X -T ${_machdir}/conf/ld.script -Ttext 80000 --warn-common \ -nopie diff --git a/sys/arch/i386/conf/Makefile.i386 b/sys/arch/i386/conf/Makefile.i386 index 7220e321e55..ac6643390a9 100644 --- a/sys/arch/i386/conf/Makefile.i386 +++ b/sys/arch/i386/conf/Makefile.i386 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.i386,v 1.86 2013/03/30 07:25:20 tedu Exp $ +# $OpenBSD: Makefile.i386,v 1.87 2013/06/23 20:33:51 miod Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -37,7 +37,7 @@ CMACHFLAGS+= -fno-stack-protector 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 0xD0200120 -e start -N --warn-common -nopie .if ${MACHINE} == "amd64" diff --git a/sys/arch/landisk/conf/Makefile.landisk b/sys/arch/landisk/conf/Makefile.landisk index e0e2a9e5e46..608d97d929a 100644 --- a/sys/arch/landisk/conf/Makefile.landisk +++ b/sys/arch/landisk/conf/Makefile.landisk @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.landisk,v 1.47 2013/03/30 07:25:20 tedu Exp $ +# $OpenBSD: Makefile.landisk,v 1.48 2013/06/23 20:33:51 miod Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -37,7 +37,7 @@ CMACHFLAGS+= -fno-stack-protector 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= -N -Ttext 0x8c002000 -e start --warn-common -nopie .if ${IDENT:M-DDDB_STRUCT} diff --git a/sys/arch/loongson/conf/Makefile.loongson b/sys/arch/loongson/conf/Makefile.loongson index b16508dc038..c7d14b251f3 100644 --- a/sys/arch/loongson/conf/Makefile.loongson +++ b/sys/arch/loongson/conf/Makefile.loongson @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.loongson,v 1.37 2013/04/01 19:12:13 miod Exp $ +# $OpenBSD: Makefile.loongson,v 1.38 2013/06/23 20:33:51 miod Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -44,7 +44,7 @@ CMACHFLAGS+= -fno-stack-protector 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= -e start -T ${_machdir}/conf/ld.script -Ttext=${LINK_ADDRESS} \ -warn-common -nopie diff --git a/sys/arch/luna88k/conf/Makefile.luna88k b/sys/arch/luna88k/conf/Makefile.luna88k index c0efdfbd0bc..e6b42c5ecda 100644 --- a/sys/arch/luna88k/conf/Makefile.luna88k +++ b/sys/arch/luna88k/conf/Makefile.luna88k @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.luna88k,v 1.47 2013/03/30 07:25:20 tedu Exp $ +# $OpenBSD: Makefile.luna88k,v 1.48 2013/06/23 20:33:51 miod Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -38,7 +38,7 @@ CMACHFLAGS+= -fno-stack-protector COPTS?= -O2 CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE} -AFLAGS= -D_LOCORE -x assembler-with-cpp -traditional-cpp ${CMACHFLAGS} +AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS} LINKFLAGS= -T ${_machdir}/conf/ld.script -Ttext 0x20000 -e __start -X -N \ --warn-common -nopie diff --git a/sys/arch/mvme68k/conf/Makefile.mvme68k b/sys/arch/mvme68k/conf/Makefile.mvme68k index f7c21d57660..7a23e89fe17 100644 --- a/sys/arch/mvme68k/conf/Makefile.mvme68k +++ b/sys/arch/mvme68k/conf/Makefile.mvme68k @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.mvme68k,v 1.67 2013/03/30 07:25:20 tedu Exp $ +# $OpenBSD: Makefile.mvme68k,v 1.68 2013/06/23 20:33:51 miod Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -37,7 +37,7 @@ CMACHFLAGS+= -fno-stack-protector COPTS?= -O2 CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE} -AFLAGS= -D_LOCORE -x assembler-with-cpp -traditional-cpp ${CMACHFLAGS} +AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS} LINKFLAGS= -Ttext 0x10000 -e start --warn-common -nopie .if ${IDENT:M-DDDB_STRUCT} diff --git a/sys/arch/mvme88k/conf/Makefile.mvme88k b/sys/arch/mvme88k/conf/Makefile.mvme88k index d3204c13322..83570c8aee6 100644 --- a/sys/arch/mvme88k/conf/Makefile.mvme88k +++ b/sys/arch/mvme88k/conf/Makefile.mvme88k @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.mvme88k,v 1.77 2013/03/30 07:25:20 tedu Exp $ +# $OpenBSD: Makefile.mvme88k,v 1.78 2013/06/23 20:33:51 miod Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -37,7 +37,7 @@ CMACHFLAGS+= -fno-stack-protector COPTS?= -O2 CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE} -AFLAGS= -D_LOCORE -x assembler-with-cpp -traditional-cpp ${CMACHFLAGS} +AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS} LINKFLAGS= -Ttext 0x10000 -e __start -X -N --warn-common -nopie .if ${IDENT:M-DDDB_STRUCT} diff --git a/sys/arch/octeon/conf/Makefile.octeon b/sys/arch/octeon/conf/Makefile.octeon index 77e5ed8bf63..2c344a249c9 100644 --- a/sys/arch/octeon/conf/Makefile.octeon +++ b/sys/arch/octeon/conf/Makefile.octeon @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.octeon,v 1.13 2013/04/01 19:12:14 miod Exp $ +# $OpenBSD: Makefile.octeon,v 1.14 2013/06/23 20:33:51 miod Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -44,7 +44,7 @@ CMACHFLAGS+= -fno-stack-protector 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= -e start -T ${_machdir}/conf/ld.script -Ttext=${LINK_ADDRESS} \ -nopie STRIPFLAGS= -g -x diff --git a/sys/arch/sgi/conf/Makefile.sgi b/sys/arch/sgi/conf/Makefile.sgi index a07ee2a9b8e..77254b68112 100644 --- a/sys/arch/sgi/conf/Makefile.sgi +++ b/sys/arch/sgi/conf/Makefile.sgi @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.sgi,v 1.60 2013/04/01 19:12:14 miod Exp $ +# $OpenBSD: Makefile.sgi,v 1.61 2013/06/23 20:33:51 miod Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -44,7 +44,7 @@ CMACHFLAGS+= -fno-stack-protector 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= -e start -T ${_machdir}/conf/ld.script -Ttext=${LINK_ADDRESS} \ --warn-common -nopie diff --git a/sys/arch/solbourne/conf/Makefile.solbourne b/sys/arch/solbourne/conf/Makefile.solbourne index 2e87daf73c0..2db1cb5c673 100644 --- a/sys/arch/solbourne/conf/Makefile.solbourne +++ b/sys/arch/solbourne/conf/Makefile.solbourne @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.solbourne,v 1.40 2013/03/30 07:25:20 tedu Exp $ +# $OpenBSD: Makefile.solbourne,v 1.41 2013/06/23 20:33:51 miod Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -37,7 +37,7 @@ CMACHFLAGS+= -fno-stack-protector COPTS?= -O2 CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE} -AFLAGS= -D_LOCORE -x assembler-with-cpp -traditional-cpp ${CMACHFLAGS} +AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS} LINKFLAGS= -N -e start -T ${_machdir}/conf/ld.script -Ttext FD084000 \ --warn-common -nopie diff --git a/sys/arch/sparc/conf/Makefile.sparc b/sys/arch/sparc/conf/Makefile.sparc index 8886158937b..4fb18aa8a63 100644 --- a/sys/arch/sparc/conf/Makefile.sparc +++ b/sys/arch/sparc/conf/Makefile.sparc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.sparc,v 1.76 2013/03/30 07:25:20 tedu Exp $ +# $OpenBSD: Makefile.sparc,v 1.77 2013/06/23 20:33:51 miod Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -40,7 +40,7 @@ CMACHFLAGS+= -fno-stack-protector COPTS?= -O2 CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE} -AFLAGS= -D_LOCORE -x assembler-with-cpp -traditional-cpp ${CMACHFLAGS} +AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS} LINKFLAGS= -N -e start -Ttext F8004000 --warn-common -nopie .if ${IDENT:M-DDDB_STRUCT} diff --git a/sys/arch/sparc64/conf/Makefile.sparc64 b/sys/arch/sparc64/conf/Makefile.sparc64 index 1687b7e59b4..e4d8584fbd7 100644 --- a/sys/arch/sparc64/conf/Makefile.sparc64 +++ b/sys/arch/sparc64/conf/Makefile.sparc64 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.sparc64,v 1.63 2013/03/30 07:25:20 tedu Exp $ +# $OpenBSD: Makefile.sparc64,v 1.64 2013/06/23 20:33:51 miod Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -37,7 +37,7 @@ CMACHFLAGS+= -fno-stack-protector 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= -n -Ttext 01000000 -Tdata 01800000 -e start -N --warn-common \ -nopie diff --git a/sys/arch/vax/conf/Makefile.vax b/sys/arch/vax/conf/Makefile.vax index d737e2c6180..1194a66a61f 100644 --- a/sys/arch/vax/conf/Makefile.vax +++ b/sys/arch/vax/conf/Makefile.vax @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.vax,v 1.67 2013/03/30 07:25:20 tedu Exp $ +# $OpenBSD: Makefile.vax,v 1.68 2013/06/23 20:33:52 miod Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -37,7 +37,8 @@ CMACHFLAGS+= -fno-stack-protector COPTS?= -O2 CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE} -AFLAGS= -D_LOCORE -x assembler-with-cpp -traditional-cpp ${CMACHFLAGS} +AFLAGS= -D_LOCORE -x assembler-with-cpp -traditional-cpp \ + ${CWARNFLAGS} ${CMACHFLAGS} LINKFLAGS= -N -Ttext 80000000 -e start .if ${IDENT:M-DDDB_STRUCT} diff --git a/sys/arch/zaurus/conf/Makefile.zaurus b/sys/arch/zaurus/conf/Makefile.zaurus index 1687ef70961..50472d86f63 100644 --- a/sys/arch/zaurus/conf/Makefile.zaurus +++ b/sys/arch/zaurus/conf/Makefile.zaurus @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.zaurus,v 1.47 2013/03/30 07:25:20 tedu Exp $ +# $OpenBSD: Makefile.zaurus,v 1.48 2013/06/23 20:33:52 miod Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -37,7 +37,7 @@ CMACHFLAGS+= -fno-stack-protector 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= -T ldscript --warn-common -nopie .if ${IDENT:M-DDDB_STRUCT} |