add -fno-strict-aliasing for gcc4

This commit is contained in:
christos 2006-05-21 04:43:58 +00:00
parent a75306c3a4
commit c9904084fe
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.9 2006/05/20 22:22:04 christos Exp $
# $NetBSD: Makefile.inc,v 1.10 2006/05/21 04:43:58 christos Exp $
.if !defined(__SYS_LKM_MAKEFILE_INC)
__SYS_LKM_MAKEFILE_INC= 1
@ -11,7 +11,8 @@ NOMAN= # defined
CPPFLAGS+=-I${NETBSDSRCDIR}/common/include
. if ${HAVE_GCC} > 3
CWARNFLAGS+= -Wno-pointer-sign
CWARNFLAGS+= -Wno-pointer-sign -fno-strict-aliasi
CFLAGS+= -fno-strict-aliasing
. endif
WARNS?= 1