don't do the -Wno-pointer-sign dance for host programs.

This commit is contained in:
mrg 2006-05-12 01:18:25 +00:00
parent 3c3bcb101f
commit 16efbf8575
4 changed files with 12 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.35 2006/05/11 23:16:29 mrg Exp $
# $NetBSD: Makefile,v 1.36 2006/05/12 01:18:25 mrg Exp $
PROG= fdisk
SRCS= fdisk.c
@ -22,6 +22,8 @@ LDADD+= -lutil
.include <bsd.subdir.mk>
.endif
.if !defined(HOSTPROGNAME)
.if ${HAVE_GCC} == 4
COPTS.fdisk.c+= -Wno-pointer-sign
.endif
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2006/05/11 23:16:29 mrg Exp $
# $NetBSD: Makefile,v 1.9 2006/05/12 01:18:25 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= ctags
@ -9,6 +9,8 @@ WARNS= 3
.include <bsd.prog.mk>
.if !defined(HOSTPROGNAME)
.if ${HAVE_GCC} == 4
COPTS.ctags.c+= -Wno-pointer-sign
.endif
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.35 2006/05/11 23:16:30 mrg Exp $
# $NetBSD: Makefile,v 1.36 2006/05/12 01:18:25 mrg Exp $
#
.include <bsd.own.mk>
@ -49,10 +49,12 @@ CPPFLAGS+= -I${.CURDIR} -I.
COPTS.ffs.c= -O0
.endif
.if !defined(HOSTPROGNAME)
.if ${HAVE_GCC} == 4
.for f in i386 macppc
COPTS.${f}.c+= -Wno-pointer-sign
.endfor
.endif
.endif
.include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.18 2006/05/11 23:16:30 mrg Exp $
# $NetBSD: Makefile,v 1.19 2006/05/12 01:18:25 mrg Exp $
#
.include <bsd.own.mk>
@ -30,10 +30,12 @@ CPPFLAGS+= -I${.CURDIR} \
WARNS?= 3
.if !defined(HOSTPROGNAME)
.if ${HAVE_GCC} == 4
.for f in cd9660_debug cd9660_write
COPTS.${f}.c+= -Wno-pointer-sign
.endfor
.endif
.endif
.include <bsd.prog.mk>