mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
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>