HomePhabricator

[CMAKE] Improve the FindJemalloc module

Description

[CMAKE] Improve the FindJemalloc module

Summary:
Prefer the PIC version when available, and pull the dependencies as
needed.

Test Plan:

cmake -GNinja .. -DUSE_JEMALLOC_EXPERIMENTAL=ON

On Debian, check in the cmake output that libdl is required.

ninja all check

Require D6038:

cmake -GNinja .. -DCMAKE_TOOLCHAIN_FILE=../cmake/platforms/Linux64.cmake -DUSE_JEMALLOC_EXPERIMENTAL=ON

Check in the cmake output that libdl is NOT required.

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

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

Details

Provenance
FabienAuthored on May 13 2020, 07:25
FabienPushed on May 13 2020, 23:45
Reviewer
Restricted Project
Differential Revision
D6055: [CMAKE] Improve the FindJemalloc module
Parents
rABCbbcc120d0745: Bump misbehaving factor for unexpected version message behavior
Branches
Unknown
Tags
Unknown