From 1b4d407570b06a25685e6c1f12c048c8d305a56e Mon Sep 17 00:00:00 2001 From: mxaddict Date: Sun, 23 Jan 2022 03:58:40 +0800 Subject: [PATCH] Updated c++std for bdb, boost, qt and zeromq (#905) --- depends/packages/bdb.mk | 2 +- depends/packages/boost.mk | 2 +- depends/packages/qt.mk | 2 +- depends/packages/zeromq.mk | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/depends/packages/bdb.mk b/depends/packages/bdb.mk index 0f0e70725..1c4f698a5 100644 --- a/depends/packages/bdb.mk +++ b/depends/packages/bdb.mk @@ -10,7 +10,7 @@ $(package)_config_opts=--disable-shared --enable-cxx --disable-replication --wit $(package)_config_opts_mingw32=--enable-mingw $(package)_config_opts_linux=--with-pic $(package)_cflags+=-Wno-error=implicit-function-declaration -$(package)_cxxflags=-std=c++11 +$(package)_cxxflags=-std=c++17 $(package)_cppflags_mingw32=-DUNICODE -D_UNICODE endef diff --git a/depends/packages/boost.mk b/depends/packages/boost.mk index 7311adfd3..5ae5744e8 100644 --- a/depends/packages/boost.mk +++ b/depends/packages/boost.mk @@ -26,7 +26,7 @@ ifneq (,$(findstring clang,$($(package)_cxx))) endif $(package)_archiver_$(host_os)=$($(package)_ar) $(package)_config_libraries=chrono,filesystem,system,thread,test -$(package)_cxxflags=-std=c++11 -fvisibility=hidden +$(package)_cxxflags=-std=c++17 -fvisibility=hidden $(package)_cxxflags_linux=-fPIC $(package)_cxxflags_android=-fPIC endef diff --git a/depends/packages/qt.mk b/depends/packages/qt.mk index d481eb349..3a13e9f70 100644 --- a/depends/packages/qt.mk +++ b/depends/packages/qt.mk @@ -30,7 +30,7 @@ define $(package)_set_vars $(package)_config_opts_release = -release $(package)_config_opts_debug = -debug $(package)_config_opts += -bindir $(build_prefix)/bin -$(package)_config_opts += -c++std c++11 +$(package)_config_opts += -c++std c++1z $(package)_config_opts += -confirm-license $(package)_config_opts += -hostprefix $(build_prefix) $(package)_config_opts += -no-compile-examples diff --git a/depends/packages/zeromq.mk b/depends/packages/zeromq.mk index dfbc50580..3435e7b73 100644 --- a/depends/packages/zeromq.mk +++ b/depends/packages/zeromq.mk @@ -8,7 +8,7 @@ $(package)_patches=0001-fix-build-with-older-mingw64.patch 0002-disable-pthread_ define $(package)_set_vars $(package)_config_opts=--without-docs --disable-shared --without-libsodium --disable-curve --disable-curve-keygen --disable-perf --disable-Werror $(package)_config_opts_linux=--with-pic - $(package)_cxxflags=-std=c++11 + $(package)_cxxflags=-std=c++17 endef define $(package)_preprocess_cmds