summaryrefslogtreecommitdiff
path: root/debian/local
diff options
context:
space:
mode:
Diffstat (limited to 'debian/local')
-rw-r--r--debian/local/btrfs.hook4
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/local/btrfs.hook b/debian/local/btrfs.hook
index d31199cb..f4dbb9da 100644
--- a/debian/local/btrfs.hook
+++ b/debian/local/btrfs.hook
@@ -26,4 +26,8 @@ then
then
copy_exec /bin/fsck.btrfs /bin
fi
+ LIBC_DIR=$(ldd /bin/btrfs | sed -nr 's#.* => (/lib.*)/libc\.so\.[0-9.-]+ \(0x[[:xdigit:]]+\)$#\1#p')
+ find -L "$LIBC_DIR" -maxdepth 1 -name 'libgcc_s.*' -type f | while read so; do
+ copy_exec "$so"
+ done
fi