summaryrefslogtreecommitdiff
path: root/ham/xlog
diff options
context:
space:
mode:
authorgdt <gdt@pkgsrc.org>2021-02-04 20:15:31 +0000
committergdt <gdt@pkgsrc.org>2021-02-04 20:15:31 +0000
commit59e8c916fdeeb2589a41520c40a538a35918f771 (patch)
tree77f5ac0253d7e88a18de921dd0e9c37dd859086c /ham/xlog
parent4e6e2121beb1b48651a46d038eb2f69b4de48569 (diff)
downloadpkgsrc-59e8c916fdeeb2589a41520c40a538a35918f771.tar.gz
ham/xlog: Re-rototill -Wno-stringop-truncation
Further investigation reveals this is present in recent clang and recent gcc but not moderately old (but still very relevant) gcc.
Diffstat (limited to 'ham/xlog')
-rw-r--r--ham/xlog/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/ham/xlog/Makefile b/ham/xlog/Makefile
index 7f96348b9d8..a7c8511bc03 100644
--- a/ham/xlog/Makefile
+++ b/ham/xlog/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.94 2021/02/04 20:02:14 gdt Exp $
+# $NetBSD: Makefile,v 1.95 2021/02/04 20:15:31 gdt Exp $
#
DISTNAME= xlog-2.0.20
@@ -16,9 +16,6 @@ GNU_CONFIGURE= yes
USE_PKGLOCALEDIR= yes
USE_TOOLS+= gmake pkg-config
-# Fails with gcc 5.5.0 (netbsd-8) and clang.
-BUILDLINK_TRANSFORM+= rm:-Wno-stringop-truncation
-
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
BUILDLINK_TRANSFORM+= rm:-Wno-unused-but-set-variable
@@ -34,6 +31,11 @@ _WRAP_EXTRA_ARGS.CC+= -Wno-uninitialized
CWRAPPERS_APPEND.cc+= -Wno-uninitialized
.endif
+.if !empty(PKGSRC_COMPILER:Mgcc)
+# Fails with gcc 5.5.0 (netbsd-8).
+BUILDLINK_TRANSFORM+= rm:-Wno-stringop-truncation
+.endif
+
.include "../../databases/shared-mime-info/buildlink3.mk"
.include "../../graphics/gnome-icon-theme/buildlink3.mk"
.include "../../ham/hamlib/buildlink3.mk"