Module Name: pkgsrc
Committed By: gdt
Date: Sat Jan 31 21:16:04 UTC 2026
Modified Files:
pkgsrc/devel/abseil: Makefile
Log Message:
devel/abeil: Explain CXX requirements
This package is unusual, in that it's for c++17, but also has some
c++20 things that are auto-turned-on if compiled under c++20.
Explain the rationale for the C++ settings.
(This is a comment-only change.)
To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 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.37 pkgsrc/devel/abseil/Makefile:1.38
--- pkgsrc/devel/abseil/Makefile:1.37 Wed Jan 14 12:56:47 2026
+++ pkgsrc/devel/abseil/Makefile Sat Jan 31 21:16:04 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.37 2026/01/14 12:56:47 wiz Exp $
+# $NetBSD: Makefile,v 1.38 2026/01/31 21:16:04 gdt Exp $
DISTNAME= abseil-20260107.0
CATEGORIES= devel
@@ -12,7 +12,13 @@ COMMENT= C++ Common Libraries
LICENSE= apache-2.0
USE_LANGUAGES= c++
+# Upstream documents "collection of C++ code (compliant to C++17)"
USE_CXX_FEATURES= c++17
+# Upstream's cmakery checks if c++20 is supported and if so enables
+# additional features. pkgsrc norms are to have packages build the
+# same regardless of environment (other than the required environment
+# 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
CMAKE_CONFIGURE_ARGS+= -DBUILD_SHARED_LIBS=ON