diff --git a/srcpkgs/autofs/template b/srcpkgs/autofs/template index 1a87a3f1794..27f992669e8 100644 --- a/srcpkgs/autofs/template +++ b/srcpkgs/autofs/template @@ -3,8 +3,8 @@ pkgname=autofs version=5.1.5 revision=1 build_style=gnu-configure -conf_files="/etc/autofs/*" configure_args="--with-libtirpc --with-mapdir=/etc/autofs --sbindir=/usr/bin" +conf_files="/etc/autofs/*" hostmakedepends="pkg-config flex kmod rpcgen" makedepends="libtirpc-devel libxml2-devel" short_desc="A kernel-based automounter for Linux" @@ -19,7 +19,9 @@ CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/gssglue -I${XBPS_CROSS_BASE}/usr/includ case "$XBPS_TARGET_MACHINE" in *-musl) # sssd cannot be built for musl ;; - *) makedepends+=" sssd-devel" + *) if [ -z "$CROSS_BUILD" ]; then + makedepends+=" sssd-devel" + fi ;; esac