diff --git a/srcpkgs/dracut/template b/srcpkgs/dracut/template index 3f5471f4a59..6b028275905 100644 --- a/srcpkgs/dracut/template +++ b/srcpkgs/dracut/template @@ -18,6 +18,18 @@ license="GPL-2" distfiles="${KERNEL_SITE}/utils/boot/$pkgname/$pkgname-$version.tar.xz" checksum=ca9c7ea54d3efc8b57ac1427cc5fa4d66688f6cf9d3088f4c5e7ae7c7e84ebf8 +case "$XBPS_TARGET_MACHINE" in +*-musl) # Add musl-fts implementation + makedepends+=" musl-fts-devel" + ;; +esac + +do_build() { + case "$XBPS_TARGET_MACHINE" in + *-musl) make ${makejobs} LDLIBS="${XBPS_CROSS_BASE}/usr/lib/libfts.a";; + esac +} + post_install() { # kernel hooks. vinstall ${FILESDIR}/kernel-hook-postinst 755 etc/kernel.d/post-install 20-dracut