mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
Merge pull request #180028 from luizribeiro/zstd-riscv
zstd: Fix build on riscv hosts
This commit is contained in:
commit
0e48ac0469
@ -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 New Issue
Block a user