sprinkle some -fno-strict-aliasing with GCC4.

This commit is contained in:
mrg 2006-05-11 09:08:09 +00:00
parent 10c621b36e
commit 86533d64ca
4 changed files with 22 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.26 2005/04/23 18:41:43 christos Exp $
# $NetBSD: Makefile,v 1.27 2006/05/11 09:08:09 mrg Exp $
.include "${.CURDIR}/../Makefile.inc"
@ -28,6 +28,10 @@ SRCS+= info_hesiod.c
SRCS+= info_nis.c
.endif
.if ${HAVE_GCC} == 4
COPTS.amq_subr.c+= -fno-strict-aliasing
.endif
# the following are not supported on NetBSD
# info_ldap.c info_nisplus.c ops_cachefs.c ops_efs.c ops_lofs.c ops_xfs.c
MAN+= amd.8

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.13 2000/11/20 00:25:01 wiz Exp $
# $NetBSD: Makefile,v 1.14 2006/05/11 09:08:09 mrg Exp $
.include "${.CURDIR}/../Makefile.inc"
@ -13,4 +13,9 @@ MAN+= amq.8
CPPFLAGS+= -I${DIST}
LDADD+= ${LIBAMU}
.if ${HAVE_GCC} == 4
COPTS.amq_xdr.c+= -fno-strict-aliasing
COPTS.amq.c+= -fno-strict-aliasing
.endif
.include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.19 2006/02/05 16:29:00 christos Exp $
# $NetBSD: Makefile,v 1.20 2006/05/11 09:08:09 mrg Exp $
NOLINKLIB= # defined
@ -15,6 +15,11 @@ SRCS= hasmntopt.c misc_rpc.c mount_fs.c mtab.c mtab_bsd.c \
nfs_prot_xdr.c strutil.c transp_sockets.c ualarm.c umount_bsd44.c \
wire.c xdr_func.c xutil.c
# XXX
.if ${HAVE_GCC} == 4
COPTS.xdr_func.c+= -fno-strict-aliasing
.endif
# some host specific compile time settings amd wants to have compiled in
config_local.h: mkconf
${_MKTARGET_CREATE}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2000/11/20 00:25:29 wiz Exp $
# $NetBSD: Makefile,v 1.5 2006/05/11 09:08:09 mrg Exp $
.include "${.CURDIR}/../Makefile.inc"
@ -15,4 +15,8 @@ MAN+= pawd.1
CPPFLAGS+= -I${DIST}
LDADD+= ${LIBAMU}
.if ${HAVE_GCC} == 4
COPTS.amq_xdr.c+= -fno-strict-aliasing
.endif
.include <bsd.prog.mk>