Fix unoptimized libraries in depends
This was a bug we inherited from BTC which causes some dependencies to be built without optimization essentially replacing -O2 -pipe with -O0 because cxxflags is assigned to instead of appended to. We no longer have zeromq so for us this fixes the fact that bdb is being compiled without optimization. https://github.com/bitcoin/bitcoin/pull/22840
This commit is contained in:
@@ -14,7 +14,7 @@ ifneq ($(build_os),darwin)
|
||||
$(package)_config_opts_darwin=--disable-atomicsupport
|
||||
endif
|
||||
$(package)_config_opts_aarch64=--disable-atomicsupport
|
||||
$(package)_cxxflags=-std=c++11
|
||||
$(package)_cxxflags+=-std=c++11
|
||||
endef
|
||||
|
||||
define $(package)_preprocess_cmds
|
||||
|
||||
@@ -22,7 +22,7 @@ $(package)_archiver_$(host_os)=$($(package)_ar)
|
||||
$(package)_toolset_darwin=gcc
|
||||
$(package)_archiver_darwin=$($(package)_ar)
|
||||
$(package)_config_libraries=chrono,filesystem,program_options,system,thread,test
|
||||
$(package)_cxxflags=-std=c++11 -fvisibility=hidden
|
||||
$(package)_cxxflags+=-std=c++11 -fvisibility=hidden
|
||||
$(package)_cxxflags_linux=-fPIC
|
||||
endef
|
||||
|
||||
|
||||
Reference in New Issue
Block a user