diff --git a/srcpkgs/chroot-distcc/template b/srcpkgs/chroot-distcc/template index 438131e14ea..bb4e6198399 100644 --- a/srcpkgs/chroot-distcc/template +++ b/srcpkgs/chroot-distcc/template @@ -8,7 +8,6 @@ build_style=gnu-configure configure_args="--with-included-popt --without-avahi --without-gnome --without-gtk --disable-Werror --disable-pump-mode --without-libiberty" make_install_target=install-programs -makedepends="binutils-devel" short_desc="Distributed compilation for faster C/C++ builds -- for xbps-src use" maintainer="Enno Boland " license="GPL-2.0-or-later" @@ -19,6 +18,10 @@ checksum=bead25471d5a53ecfdf8f065a6fe48901c14d5008956c318c700e56bc87bf0bc conflicts="distcc>=0" CFLAGS="-fcommon" +if [ "$CHROOT_READY" ]; then + makedepends="binutils-devel" +fi + pre_configure() { # Copy files generated by package distcc running autogen.sh # Manual update is required for every new version