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/bdb.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/bdb.mk')
-rw-r--r-- | depends/packages/bdb.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/depends/packages/bdb.mk b/depends/packages/bdb.mk index d45ac3d03f..8a3116bb3b 100644 --- a/depends/packages/bdb.mk +++ b/depends/packages/bdb.mk @@ -12,7 +12,7 @@ $(package)_config_opts_mingw32=--enable-mingw $(package)_config_opts_linux=--with-pic $(package)_config_opts_android=--with-pic $(package)_cflags+=-Wno-error=implicit-function-declaration -$(package)_cxxflags=-std=c++17 +$(package)_cxxflags+=-std=c++17 $(package)_cppflags_mingw32=-DUNICODE -D_UNICODE endef |