From 59de62317dbc5270eafd00503c9633af60eb590b Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Sun, 27 Oct 2013 04:19:18 -0500 Subject: btrfs: fix build to link against libgcc_s so that pthread_cancel is linked Currently, the command btrfs scrub start attempts to invoke the pthread_cancel routine and ends with an error melibgcc_sssage about it being missing. This prevents btrfs scrub status from maintaining proper statistics about the running scrub. Close #1127. --- pkgs/tools/filesystems/btrfsprogs/default.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkgs/tools') diff --git a/pkgs/tools/filesystems/btrfsprogs/default.nix b/pkgs/tools/filesystems/btrfsprogs/default.nix index 9c8d18231f0f..0661755d2e17 100644 --- a/pkgs/tools/filesystems/btrfsprogs/default.nix +++ b/pkgs/tools/filesystems/btrfsprogs/default.nix @@ -13,6 +13,9 @@ stdenv.mkDerivation { buildInputs = [ zlib libuuid acl attr e2fsprogs lzo ]; + # for btrfs to get the rpath to libgcc_s, needed for pthread_cancel to work + NIX_CFLAGS_LINK = "-lgcc_s"; + postPatch = '' cp ${./btrfs-set-received-uuid.c} btrfs-set-received-uuid.c ''; -- cgit 1.4.1