diff options
author | kamil <kamil@pkgsrc.org> | 2020-02-08 09:16:56 +0000 |
---|---|---|
committer | kamil <kamil@pkgsrc.org> | 2020-02-08 09:16:56 +0000 |
commit | 33cfa0a4ab66fe96f9131716700c4a03104c5b79 (patch) | |
tree | 3d27bc10f5d59616865575b062dcd3edb471be56 | |
parent | eecb16b457438f6f63b9f155c7efa034cd298ada (diff) | |
download | pkgsrc-33cfa0a4ab66fe96f9131716700c4a03104c5b79.tar.gz |
xkbcomp: restrict -Wno-error=string-compare to clang
The original reproducer was on clang 10git rather than gcc.
-rw-r--r-- | x11/xkbcomp/Makefile | 5 |
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" |