zstd: Fix build on riscv hosts

This commit is contained in:
Luiz Ribeiro 2022-07-03 12:47:51 -05:00
parent d335ada6fe
commit c0fc8f51a2
No known key found for this signature in database
GPG key ID: BF6F8043AC280E02

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;