diff options
author | fanquake <fanquake@gmail.com> | 2021-08-31 11:43:48 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-08-31 11:43:48 +0800 |
commit | 76f031b050a4bca093845d45e0d05f56d7242ae1 (patch) | |
tree | b380492a8f9e9fb6fb14a60322c3ea755c599e06 /depends/packages/boost.mk | |
parent | 7be143a960e2bb9ac81144f55c45731c1bb209c5 (diff) | |
download | bitcoin-76f031b050a4bca093845d45e0d05f56d7242ae1.tar.xz |
build: fix unoptimized libraries in depends
We need to append-to rather than set CXXFLAGS, otherwise we loose -O2 &
-pipe. Currently this results in zeromq being built without optimizations
at all (or whatever the compiler would default too, essentially always -O0).
Bdb is the same, for the CXX portion of its code. C code has been built
with -O2.
Boost has actually been uneffected because it receives -O3 from it's own
build flags.
Diffstat (limited to 'depends/packages/boost.mk')
-rw-r--r-- | depends/packages/boost.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/depends/packages/boost.mk b/depends/packages/boost.mk index f879d176f5..21df50b040 100644 --- a/depends/packages/boost.mk +++ b/depends/packages/boost.mk @@ -23,7 +23,7 @@ else $(package)_toolset_$(host_os)=gcc endif $(package)_config_libraries=filesystem,system,test -$(package)_cxxflags=-std=c++17 -fvisibility=hidden +$(package)_cxxflags+=-std=c++17 -fvisibility=hidden $(package)_cxxflags_linux=-fPIC $(package)_cxxflags_android=-fPIC $(package)_cxxflags_x86_64_darwin=-fcf-protection=full |