]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Use explicit flag for the specific version of c++ wer'e targeting.
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 15 Jun 2020 13:01:10 +0000 (15:01 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 15 Jun 2020 13:09:05 +0000 (15:09 +0200)
configure.ac
pdns/dnsdistdist/configure.ac
pdns/recursordist/configure.ac

index aa930841cfd96d451b23b3b96f953490c767a874..274432595be4c28fb0ea4df82ed33048dc5f2ad1 100644 (file)
@@ -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
index 9828ff64d7aa7f485c72158e0cb6d4fabdf1d0c9..25a8fc8d68c9c701f22d31a5ba1c934bef7ea4cc 100644 (file)
@@ -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])
index 9a9581f01a4b854f609eda8ad0f64c39d5df7be9..32476b8c007b9419f7a003996278bb1260c402c3 100644 (file)
@@ -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],