zstd: Fix build on riscv hosts
This commit is contained in:
parent
d335ada6fe
commit
c0fc8f51a2
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue