pkgsMusl.libiscsi: fix build

This commit is contained in:
Alyssa Ross 2021-08-27 12:16:30 +00:00
parent 9203210f36
commit 78d20f2200

View file

@ -13,8 +13,13 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook ];
# This can be removed after >=1.20.0, or if the build suceeds with
# pie enabled (default on Musl).
hardeningDisable = [ "pie" ];
# This problem is gone on libiscsi master.
NIX_CFLAGS_COMPILE = if stdenv.hostPlatform.is32bit then "-Wno-error=sign-compare" else null;
NIX_CFLAGS_COMPILE =
lib.optional stdenv.hostPlatform.is32bit "-Wno-error=sign-compare";
meta = with lib; {
description = "iscsi client library and utilities";