for now, turn on -fno-strict-aliasing for GCC4.

This commit is contained in:
mrg 2006-05-11 00:46:57 +00:00
parent 19b4ae1a8b
commit 8154510479
1 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.kmod.mk,v 1.79 2006/05/06 02:20:23 groo Exp $
# $NetBSD: bsd.kmod.mk,v 1.80 2006/05/11 00:46:57 mrg Exp $
.include <bsd.init.mk>
@ -23,6 +23,11 @@ CPPFLAGS+= -nostdinc -I. -I${.CURDIR} -isystem $S -isystem $S/arch
CPPFLAGS+= -isystem ${S}/../common/include
CPPFLAGS+= -D_KERNEL -D_LKM
# XXX until the kernel is fixed again...
.if ${HAVE_GCC} == 4
CFLAGS+= -fno-strict-aliasing
.endif
_YKMSRCS= ${SRCS:M*.[ly]:C/\..$/.c/} ${YHEADER:D${SRCS:M*.y:.y=.h}}
DPSRCS+= ${_YKMSRCS}
CLEANFILES+= ${_YKMSRCS}