Merge pull request #180028 from luizribeiro/zstd-riscv

zstd: Fix build on riscv hosts
This commit is contained in:
Bernardo Meurer
2022-07-16 18:09:11 -07:00
committed by GitHub

View File

@@ -41,6 +41,8 @@ stdenv.mkDerivation rec {
tests/playTests.sh
'';
LDFLAGS = lib.optionalString stdenv.hostPlatform.isRiscV "-latomic";
cmakeFlags = lib.attrsets.mapAttrsToList
(name: value: "-DZSTD_${name}:BOOL=${if value then "ON" else "OFF"}") {
BUILD_SHARED = !static;