Skip to content

Commit 78d20f2

Browse files
committed
pkgsMusl.libiscsi: fix build
1 parent 9203210 commit 78d20f2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

pkgs/development/libraries/libiscsi/default.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@ stdenv.mkDerivation rec {
1313

1414
nativeBuildInputs = [ autoreconfHook ];
1515

16+
# This can be removed after >=1.20.0, or if the build suceeds with
17+
# pie enabled (default on Musl).
18+
hardeningDisable = [ "pie" ];
19+
1620
# This problem is gone on libiscsi master.
17-
NIX_CFLAGS_COMPILE = if stdenv.hostPlatform.is32bit then "-Wno-error=sign-compare" else null;
21+
NIX_CFLAGS_COMPILE =
22+
lib.optional stdenv.hostPlatform.is32bit "-Wno-error=sign-compare";
1823

1924
meta = with lib; {
2025
description = "iscsi client library and utilities";

0 commit comments

Comments
 (0)