summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2010-05-10 18:20:32 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2010-05-10 18:20:32 +0000
commit3d048d0ab0d9212a257df4643785a7fc4500f65a (patch)
treeee69a2ee7a0126c6826e618641e3694b28356554 /usr.bin/mandoc
parent74ec6f5d77854dfd44aaf3ee3e8836f9a15c38ff (diff)
Switch to using COMPILER_VERSION instead of USE_GCC3, allows for more flexible
complier picking, eg supporting gcc2, gcc3, and gcc4. based on diff by Marco, with fixes from espie@. ok espie@ general mumbling of approval of others.
Diffstat (limited to 'usr.bin/mandoc')
-rw-r--r--usr.bin/mandoc/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mandoc/Makefile b/usr.bin/mandoc/Makefile
index d6e9e290f28..0a1b5dac4b0 100644
--- a/usr.bin/mandoc/Makefile
+++ b/usr.bin/mandoc/Makefile
@@ -1,11 +1,12 @@
-# $OpenBSD: Makefile,v 1.33 2010/04/07 23:15:05 schwarze Exp $
+# $OpenBSD: Makefile,v 1.34 2010/05/10 18:20:31 drahn Exp $
.include <bsd.own.mk>
VERSION=1.9.23
CFLAGS+=-DVERSION=\"${VERSION}\"
CFLAGS+=-W -Wall -Wstrict-prototypes
-.if ${USE_GCC3:L} != "no"
+
+.if ${COMPILER_VERSION:L} == "gcc3" || ${COMPILER_VERSION:L} == "gcc4"
CFLAGS+=-Wno-unused-parameter
.endif