Module Name: src
Committed By: matt
Date: Fri Jul 27 05:40:52 UTC 2012
Modified Files:
src/sys/conf: Makefile.kern.inc
Log Message:
Enable -fno-common for GCC compiled kernels
To generate a diff of this commit:
cvs rdiff -u -r1.156 -r1.157 src/sys/conf/Makefile.kern.inc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/conf/Makefile.kern.inc
diff -u src/sys/conf/Makefile.kern.inc:1.156 src/sys/conf/Makefile.kern.inc:1.157
--- src/sys/conf/Makefile.kern.inc:1.156 Sun Mar 25 09:15:20 2012
+++ src/sys/conf/Makefile.kern.inc Fri Jul 27 05:40:51 2012
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.kern.inc,v 1.156 2012/03/25 09:15:20 martin Exp $
+# $NetBSD: Makefile.kern.inc,v 1.157 2012/07/27 05:40:51 matt Exp $
#
# This file contains common `MI' targets and definitions and it is included
# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -98,6 +98,7 @@ AFLAGS+= -D_LOCORE -Wa,--fatal-warnings
# XXX
.if defined(HAVE_GCC)
CFLAGS+= -fno-strict-aliasing
+CFLAGS+= -fno-common
.endif
.if ${USE_SSP:Uno} == "yes"