void-packages/srcpkgs/mosh/patches/cpp17.patch

15 lines
498 B
Diff

--- a/configure.ac 2022-10-27 05:29:47.000000000 +0200
+++ - 2023-07-08 13:19:05.270079012 +0200
@@ -22,9 +22,9 @@
# automake 1.12 seems to require this, but automake 1.11 doesn't recognize it
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
-# Protobuf 3.6+ requires C++11.
+# Protobuf 3.6+ requires C++11., 4.2.2 with abseil requires C++17
AS_IF([pkg-config --atleast-version 3.6.0 protobuf],
- [AX_CXX_COMPILE_STDCXX([11])])
+ [AX_CXX_COMPILE_STDCXX([17])])
WARNING_CXXFLAGS=""
PICKY_CXXFLAGS=""