pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/acpica-utils acpica-utils: Fix build with GCC...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0f328e2ca461
branches:  trunk
changeset: 452432:0f328e2ca461
user:      rin <rin%pkgsrc.org@localhost>
date:      Mon May 10 09:25:10 2021 +0000

description:
acpica-utils: Fix build with GCC10 by adding some -Wno-error=xxx.

diffstat:

 sysutils/acpica-utils/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 47061856a1ee -r 0f328e2ca461 sysutils/acpica-utils/Makefile
--- a/sysutils/acpica-utils/Makefile    Mon May 10 09:22:34 2021 +0000
+++ b/sysutils/acpica-utils/Makefile    Mon May 10 09:25:10 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2020/10/16 11:46:39 rin Exp $
+# $NetBSD: Makefile,v 1.16 2021/05/10 09:25:10 rin Exp $
 #
 
 DISTNAME=      acpica-unix2-20160930
@@ -59,5 +59,10 @@
 CFLAGS+=       -Wno-error=format-overflow \
                -Wno-error=stringop-truncation
 .endif
+.if !empty(CC_VERSION:Mgcc-10*)
+CFLAGS+=       -Wno-error=format-overflow \
+               -Wno-error=format-truncation \
+               -Wno-error=stringop-truncation
+.endif
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index