add -std=c++11 as c++17 has deprecated dynamic exception specifications

Modern g++ (11.2) uses -std=c++17 as default, which doesn't permit
dynamic exception specifications anymore.  Downgrading to c++11 will
turn the related compiler errors into deprecation warnings:

 warning: dynamic exception specifications are deprecated in C++11
This commit is contained in:
Harald Welte 2022-04-15 08:20:39 +02:00
parent c5c87183b0
commit c7a2daca2c
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ AC_CHECK_LIB(capi20,capi20_register,,AC_MSG_ERROR(libcapi20 not found))
AC_CHECK_LIB(pthread,pthread_create,,AC_MSG_ERROR(libpthread not found))
AM_PATH_PYTHON([2.7])
PGAC_CHECK_PYTHON_EMBED_SETUP
CPPFLAGS='-DLOCALSTATEDIR=\"$(localstatedir)\" -DPKGDATADIR=\"$(pkgdatadir)\" -DPKGSYSCONFDIR=\"$(sysconfdir)/capisuite\" -DPKGLIBDIR=\"$(pkglibdir)\" $(python_includespec)'
CPPFLAGS='-std=c++11 -DLOCALSTATEDIR=\"$(localstatedir)\" -DPKGDATADIR=\"$(pkgdatadir)\" -DPKGSYSCONFDIR=\"$(sysconfdir)/capisuite\" -DPKGLIBDIR=\"$(pkglibdir)\" $(python_includespec)'
AC_CONFIG_FILES([Makefile src/Makefile src/backend/Makefile src/modules/Makefile src/application/Makefile src/capisuite-py/Makefile scripts/Makefile scripts/waves/Makefile docs/Makefile scripts/capisuite.service])
AC_OUTPUT