diff options
author | gdt <gdt@pkgsrc.org> | 2021-02-04 21:47:30 +0000 |
---|---|---|
committer | gdt <gdt@pkgsrc.org> | 2021-02-04 21:47:30 +0000 |
commit | 1870132c21b3ba96196505d590c73f485fe24443 (patch) | |
tree | 3b5716b963668d1cf2a256b341f292c15d44fea0 /ham/xlog | |
parent | 2fee15cf4a24f5ef2592faf387086122346bfda2 (diff) | |
download | pkgsrc-1870132c21b3ba96196505d590c73f485fe24443.tar.gz |
ham/xlog: Limit -Wno-stringop-truncation to gcc 4/5.
Diffstat (limited to 'ham/xlog')
-rw-r--r-- | ham/xlog/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ham/xlog/Makefile b/ham/xlog/Makefile index a7c8511bc03..ada1e4e3783 100644 --- a/ham/xlog/Makefile +++ b/ham/xlog/Makefile @@ -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 @@ _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). +# 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 |