This allow to build jemalloc as a static dependency. It also fixes the
missing dependencies for a successful static build on Posix platforms.
Next step is to enable it by default and use it for our release build.
Details
- Reviewers
deadalnix - Group Reviewers
Restricted Project - Commits
- rSTAGING89125792866d: [DEPENDS] Add jemalloc to the depends
rABC89125792866d: [DEPENDS] Add jemalloc to the depends
cd depends make build-all
Cross build for all platforms with jemalloc enabled and run the
binaries (requires D6055).
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- depends_jemalloc
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 10712 Build 19218: Default Diff Build & Tests Build 19217: arc lint + arc unit
Event Timeline
depends/packages/jemalloc.mk | ||
---|---|---|
8 ↗ | (On Diff #19932) | From the release notes: Add configure option --disable-libdl to enable fully static builds. so that seems a good idea. |
t seems like adding jemalloc to the depend is dragged down by poor integration into the build system. It is unclear to me why you packaged both together.
cmake/modules/FindJemalloc.cmake | ||
---|---|---|
44 | IMO you might as well link it on windows as well, no? AFAIK, we will need the threading library on windows too to use jemalloc. | |
51 | If we build the depends without dl, then we should not add it as a dependency. |
I will split this diff
cmake/modules/FindJemalloc.cmake | ||
---|---|---|
44 | Windows don't need anything special like the -pthreads flag, so it's not strictly required, but it doesn't hurt either and make it a bit simpler. I'll change that. | |
51 | This is OK for the version built from the depends, but not for other distributions that may have it as a dependency, such as debian. |