File tree Expand file tree Collapse file tree 11 files changed +9
-8
lines changed
Expand file tree Collapse file tree 11 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 4646FALLBACK_DOWNLOAD_PATH ?= https://bitcoincore.org/depends-sources
4747
4848C_STANDARD ?= c11
49+ CXX_STANDARD ?= c++17
4950
5051BUILD = $(shell ./config.guess)
5152HOST ?= $(BUILD )
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ The following can be set when running make: `make FOO=bar`
9797- ` SDK_PATH ` : Path where SDKs can be found (used by macOS)
9898- ` FALLBACK_DOWNLOAD_PATH ` : If a source file can't be fetched, try here before giving up
9999- ` C_STANDARD ` : Set the C standard version used. Defaults to ` c11 ` .
100+ - ` CXX_STANDARD ` : Set the C++ standard version used. Defaults to ` c++17 ` .
100101- ` NO_QT ` : Don't download/build/cache Qt and its dependencies
101102- ` NO_QR ` : Don't download/build/cache packages needed for enabling qrencode
102103- ` NO_ZMQ ` : Don't download/build/cache packages needed for enabling ZeroMQ
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ android_CC=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)$(ANDROID_API_LEVEL)-clang
77endif
88
99android_CFLAGS=-std =$(C_STANDARD )
10+ android_CXXFLAGS=-std =$(CXX_STANDARD )
1011
1112ifneq ($(LTO ) ,)
1213android_CFLAGS += -flto
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ darwin_CXX=env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH \
110110 -Xclang -internal-externc-isystem$(OSX_SDK ) /usr/include
111111
112112darwin_CFLAGS =-pipe -std=$(C_STANDARD )
113- darwin_CXXFLAGS =-pipe
113+ darwin_CXXFLAGS =-pipe -std= $( CXX_STANDARD )
114114
115115ifneq ($(LTO ) ,)
116116darwin_CFLAGS += -flto
Original file line number Diff line number Diff line change 11freebsd_CFLAGS =-pipe -std=$(C_STANDARD )
2- freebsd_CXXFLAGS =-pipe
2+ freebsd_CXXFLAGS =-pipe -std= $( CXX_STANDARD )
33
44ifneq ($(LTO ) ,)
55freebsd_CFLAGS += -flto
Original file line number Diff line number Diff line change 11linux_CFLAGS =-pipe -std=$(C_STANDARD )
2- linux_CXXFLAGS =-pipe
2+ linux_CXXFLAGS =-pipe -std= $( CXX_STANDARD )
33
44ifneq ($(LTO ) ,)
55linux_CFLAGS += -flto
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ mingw32_CXX := $(host)-g++-posix
33endif
44
55mingw32_CFLAGS =-pipe -std=$(C_STANDARD )
6- mingw32_CXXFLAGS =-pipe
6+ mingw32_CXXFLAGS =-pipe -std= $( CXX_STANDARD )
77
88ifneq ($(LTO ) ,)
99mingw32_CFLAGS += -flto
Original file line number Diff line number Diff line change 11netbsd_CFLAGS =-pipe -std=$(C_STANDARD )
2- netbsd_CXXFLAGS =-pipe
2+ netbsd_CXXFLAGS =-pipe -std= $( CXX_STANDARD )
33
44ifneq ($(LTO ) ,)
55netbsd_CFLAGS += -flto
Original file line number Diff line number Diff line change 11openbsd_CFLAGS =-pipe -std=$(C_STANDARD )
2- openbsd_CXXFLAGS =-pipe
2+ openbsd_CXXFLAGS =-pipe -std= $( CXX_STANDARD )
33
44ifneq ($(LTO ) ,)
55openbsd_CFLAGS += -flto
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ $(package)_config_opts_netbsd=--with-pic
1515$(package ) _config_opts_openbsd=--with-pic
1616$(package ) _config_opts_android=--with-pic
1717$(package ) _cflags+=-Wno-error=implicit-function-declaration
18- $(package ) _cxxflags+=-std=c++17
1918$(package ) _cppflags_mingw32=-DUNICODE -D_UNICODE
2019endef
2120
You can’t perform that action at this time.
0 commit comments