Debian Codegraph @

debian/patches/0006-autoconf-Enforce-c-14.patch

raw
1 From: Boyuan Yang <[email protected]>
2 Date: Tue, 12 Oct 2021 13:46:03 -0400
3 Subject: autoconf: Enforce c++14
4
5 GCC 11 uses C++17 by default, which causes the following error:
6
7 error: ISO C++17 does not allow dynamic exception specifications
8
9 As a result, use C++14 to circumvent FTBFS.
10 ---
11 configure.in | 3 +++
12 1 file changed, 3 insertions(+)
13
14 diff --git a/configure.in b/configure.in
15 index d47f4eb..44af720 100644
16 --- a/configure.in
17 +++ b/configure.in
18 @@ -52,6 +52,9 @@ fi
19 dnl output all warnings
20 CXXFLAGS="-Wall $CXXFLAGS"
21
22 +dnl Debian-specific: Enforce C++14 (not C++17)
23 +AX_CHECK_COMPILE_FLAG([-std=c++14], [CXXFLAGS="$CXXFLAGS -std=c++14"])
24 +
25 dnl use libtool
26 AM_PROG_LIBTOOL
27