Files
Johan Herland 2c27e0e3ae hdrhistogram_c: fix pkgsStatic build
pkgsStatic uses a fully static musl toolchain (crtbeginT.o) which cannot
link shared objects. The upstream CMakeLists uses its own
HDR_HISTOGRAM_BUILD_SHARED option (not BUILD_SHARED_LIBS) to build both
libraries unconditionally, causing a linker failure.

Disable shared library and programs builds for static targets. Add a
postInstall symlink libhdr_histogram.a -> libhdr_histogram_static.a so
that the installed pkg-config file (-lhdr_histogram) resolves correctly.

Fixes: https://github.com/NixOS/nixpkgs/issues/549561
Assisted-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-10 10:17:11 +00:00
..