summaryrefslogtreecommitdiff
path: root/x11/xkbcomp
diff options
context:
space:
mode:
authorkamil <kamil@pkgsrc.org>2020-02-08 09:16:56 +0000
committerkamil <kamil@pkgsrc.org>2020-02-08 09:16:56 +0000
commit33cfa0a4ab66fe96f9131716700c4a03104c5b79 (patch)
tree3d27bc10f5d59616865575b062dcd3edb471be56 /x11/xkbcomp
parenteecb16b457438f6f63b9f155c7efa034cd298ada (diff)
downloadpkgsrc-33cfa0a4ab66fe96f9131716700c4a03104c5b79.tar.gz
xkbcomp: restrict -Wno-error=string-compare to clang
The original reproducer was on clang 10git rather than gcc.
Diffstat (limited to 'x11/xkbcomp')
-rw-r--r--x11/xkbcomp/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/x11/xkbcomp/Makefile b/x11/xkbcomp/Makefile
index a2781aedb78..116781286ed 100644
--- a/x11/xkbcomp/Makefile
+++ b/x11/xkbcomp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2020/02/06 11:24:20 kamil Exp $
+# $NetBSD: Makefile,v 1.20 2020/02/08 09:16:56 kamil Exp $
DISTNAME= xkbcomp-1.4.2
CATEGORIES= x11
@@ -16,7 +16,10 @@ PKGCONFIG_OVERRIDE= xkbcomp.pc.in
CONFIGURE_ENV+= APP_MAN_SUFFIX=1
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mclang)
CFLAGS+= -Wno-error=string-compare
+.endif
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libxkbfile/buildlink3.mk"