pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/ham/xlog ham/xlog: Limit -Wno-stringop-truncation to g...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6d9a9b2d7f28
branches:  trunk
changeset: 446142:6d9a9b2d7f28
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Thu Feb 04 21:47:30 2021 +0000

description:
ham/xlog: Limit -Wno-stringop-truncation to gcc 4/5.

diffstat:

 ham/xlog/Makefile |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 52f94676dcbe -r 6d9a9b2d7f28 ham/xlog/Makefile
--- a/ham/xlog/Makefile Thu Feb 04 21:45:13 2021 +0000
+++ b/ham/xlog/Makefile Thu Feb 04 21:47:30 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.95 2021/02/04 20:15:31 gdt Exp $
+# $NetBSD: Makefile,v 1.96 2021/02/04 21:47:30 gdt Exp $
 #
 
 DISTNAME=      xlog-2.0.20
@@ -31,8 +31,9 @@
 CWRAPPERS_APPEND.cc+=  -Wno-uninitialized
 .endif
 
-.if !empty(PKGSRC_COMPILER:Mgcc)
-# Fails with gcc 5.5.0 (netbsd-8).
+# Fails with gcc 5.5.0 (netbsd-8), and presumably earlier.
+# OK with gcc 7.4.0, and OK with at least recent clang.
+.if !empty(CC_VERSION:Mgcc-[45].*) 
 BUILDLINK_TRANSFORM+=  rm:-Wno-stringop-truncation
 .endif
 



Home | Main Index | Thread Index | Old Index