Module Name: pkgsrc
Committed By: mef
Date: Sun Feb 1 00:42:22 UTC 2026
Modified Files:
pkgsrc/devel/abseil: Makefile
Log Message:
(devel/abseil) Fix build on NetBSD/amd64 and i386 9.x, w/gcc 10, tks gdt@
See:
https://mail-index.netbsd.org/pkgsrc-users/2026/01/31/msg042557.html
To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 pkgsrc/devel/abseil/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/abseil/Makefile
diff -u pkgsrc/devel/abseil/Makefile:1.38 pkgsrc/devel/abseil/Makefile:1.39
--- pkgsrc/devel/abseil/Makefile:1.38 Sat Jan 31 21:16:04 2026
+++ pkgsrc/devel/abseil/Makefile Sun Feb 1 00:42:22 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.38 2026/01/31 21:16:04 gdt Exp $
+# $NetBSD: Makefile,v 1.39 2026/02/01 00:42:22 mef Exp $
DISTNAME= abseil-20260107.0
CATEGORIES= devel
@@ -20,6 +20,9 @@ USE_CXX_FEATURES= c++17
# which is forced by the pkgsrc build). Thus, try to make the
# compiler be c++17 only, and not accept c++20.
FORCE_CXX_STD= c++17
+# gcc7 fails "expression '<lambda>' is not a constant expression"
+GCC_REQD+= 10
+
CMAKE_CONFIGURE_ARGS+= -DBUILD_SHARED_LIBS=ON
.include "../../mk/bsd.prefs.mk"