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
commit 0e48ac0469
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;