Skip to content

Commit

Permalink
ham/xlog: Limit -Wno-stringop-truncation to gcc 4/5.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdt committed Feb 4, 2021
1 parent b16ef77 commit 038bffe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ham/xlog/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 038bffe

Please sign in to comment.