From: Otto Moerbeek Date: Mon, 15 Jun 2020 13:01:10 +0000 (+0200) Subject: Use explicit flag for the specific version of c++ wer'e targeting. X-Git-Tag: rec-4.4.0-alpha2~8^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b613ac8c9526d9b576f16e5b82af85bccc39771;p=thirdparty%2Fpdns.git Use explicit flag for the specific version of c++ wer'e targeting. --- diff --git a/configure.ac b/configure.ac index aa930841cf..274432595b 100644 --- a/configure.ac +++ b/configure.ac @@ -19,7 +19,7 @@ AM_SILENT_RULES([yes]) AC_CANONICAL_HOST # Add some default CFLAGS and CXXFLAGS, can be appended to using the environment variables CFLAGS="-g -O2 -Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations -Wredundant-decls $CFLAGS" -CXXFLAGS="-g -O2 -Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations -Wredundant-decls $CXXFLAGS" +CXXFLAGS="-std=c++11 -g -O2 -Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations -Wredundant-decls $CXXFLAGS" AC_PROG_CC AM_PROG_CC_C_O diff --git a/pdns/dnsdistdist/configure.ac b/pdns/dnsdistdist/configure.ac index 9828ff64d7..25a8fc8d68 100644 --- a/pdns/dnsdistdist/configure.ac +++ b/pdns/dnsdistdist/configure.ac @@ -18,7 +18,7 @@ LT_PREREQ([2.2.2]) LT_INIT([disable-static]) CFLAGS="-g -O3 -Wall -Wextra -Wshadow -Wno-unused-parameter $CFLAGS" -CXXFLAGS="-g -O3 -Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations -Wredundant-decls $CXXFLAGS" +CXXFLAGS="-std=c++11 -g -O3 -Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations -Wredundant-decls $CXXFLAGS" PDNS_WITH_LIBSODIUM PDNS_CHECK_DNSTAP([auto]) diff --git a/pdns/recursordist/configure.ac b/pdns/recursordist/configure.ac index 9a9581f01a..32476b8c00 100644 --- a/pdns/recursordist/configure.ac +++ b/pdns/recursordist/configure.ac @@ -12,7 +12,7 @@ AC_CONFIG_HEADERS([config.h]) AC_CANONICAL_HOST # Add some default CFLAGS and CXXFLAGS, can be appended to using the environment variables CFLAGS="-Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations -Wredundant-decls -g -O2 $CFLAGS" -CXXFLAGS="-Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations -Wredundant-decls -g -O2 $CXXFLAGS" +CXXFLAGS="-std=c++11 -Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations -Wredundant-decls -g -O2 $CXXFLAGS" AC_SUBST([pdns_configure_args],["$ac_configure_args"]) AC_DEFINE_UNQUOTED([PDNS_CONFIG_ARGS],