On Sun, Nov 19, 2023 at 11:30:40AM +0100, Manuel Kuklinski wrote:
Dear pkgsrc-users,
please see the diff attached:
- - - - - - - - - - %< - - - - - - - - - -
mk ~/pkgsrc $ diff -ruN --exclude CVS pkgsrc/devel/protobuf/Makefile ../Makefile
--- pkgsrc/devel/protobuf/Makefile 2023-11-19 11:26:39
+++ ../Makefile 2023-11-19 11:25:29
@@ -21,6 +21,9 @@
USE_CXX_FEATURES= c++14
USE_LANGUAGES= c c++
+# USE_CXX_FEATURES does not affect configure phase, but is needed there
+CXXFLAGS+= -std=c++14
+
CMAKE_ARGS+= -Dprotobuf_ABSL_PROVIDER=package
CMAKE_ARGS+= -Dprotobuf_BUILD_SHARED_LIBS=ON
# requires googletest to be checked out in third_party/googletest
- - - - - - - - - - %< - - - - - - - - - -
Otherwise it fails with the following errors:
You want FORCE_CXX_STD.