HomePhabricator

build: fix unoptimized libraries in depends

Description

build: fix unoptimized libraries in depends

Summary:

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.

Also use c++17 for protobuf

This is a backport of core#22840

Test Plan: gitian builds, guix build

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D13983

Details

Provenance
fanquake <fanquake@gmail.com>Authored on Aug 31 2021, 03:43
PiRKCommitted on Jun 5 2023, 09:45
PiRKPushed on Jun 5 2023, 09:46
Reviewer
Restricted Project
Differential Revision
D13983: build: fix unoptimized libraries in depends
Parents
rABCf3417a659fc3: Make `node::BroadcastTransaction` take `const NodeContext &`, remove unused…
Branches
Unknown
Tags
Unknown