From c5ebc356233952b991a71082ce2dddfef6588a8a Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Sun, 30 Jul 2017 16:07:41 +0000 Subject: [PATCH] btrfs-progs: fix cross --- srcpkgs/btrfs-progs/template | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/srcpkgs/btrfs-progs/template b/srcpkgs/btrfs-progs/template index d41b5acec1..a75f926363 100644 --- a/srcpkgs/btrfs-progs/template +++ b/srcpkgs/btrfs-progs/template @@ -18,6 +18,12 @@ pre_configure() { NOCONFIGURE=1 ./autogen.sh } +pre_build() { + if [ $CROSS_BUILD ]; then + ${BUILD_CC} ${BUILD_CFLAGS} kernel-lib/mktables.c -o mktables + fi +} + libbtrfs_package() { short_desc+=" - runtime library" pkg_install() {