btrfs: fix build to link against libgcc_s so that pthread_cancel is linked
Currently, the command btrfs scrub start <filesystem> 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.
This commit is contained in:
parent
216e9976fe
commit
59de62317d
@ -13,6 +13,9 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
buildInputs = [ zlib libuuid acl attr e2fsprogs lzo ];
|
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 = ''
|
postPatch = ''
|
||||||
cp ${./btrfs-set-received-uuid.c} btrfs-set-received-uuid.c
|
cp ${./btrfs-set-received-uuid.c} btrfs-set-received-uuid.c
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user