From 81d16a33668f3e92a43b498652938b55ab95145a Mon Sep 17 00:00:00 2001 From: gmcgarry Date: Fri, 29 Aug 2008 00:02:21 +0000 Subject: Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. --- hack/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'hack') diff --git a/hack/Makefile b/hack/Makefile index a84500b2..fe787747 100644 --- a/hack/Makefile +++ b/hack/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.40 2006/02/25 11:56:51 simonb Exp $ +# $NetBSD: Makefile,v 1.41 2008/08/29 00:02:22 gmcgarry Exp $ # @(#)Makefile 8.2 (Berkeley) 4/27/95 .include @@ -37,6 +37,11 @@ makedefs: makedefs.lo hack.h: hack.onames.h +.if defined(HAVE_PCC) +COPTS.hack.bones.c+= -Wno-shadow +COPTS.hack.do.c+= -Wno-shadow +.endif + .if !exists(${DESTDIR}${FILESDIR}/perm) afterinstall: clobber .endif -- cgit v1.2.3-56-ge451