From cdb84765df54d1c0a3e03d7437103ed1ce7f0eba Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 12 Mar 2013 17:53:48 +0100 Subject: [PATCH] chroot-git: cross build support. --- srcpkgs/chroot-git/template | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/srcpkgs/chroot-git/template b/srcpkgs/chroot-git/template index 10b2271f25..89cf238339 100644 --- a/srcpkgs/chroot-git/template +++ b/srcpkgs/chroot-git/template @@ -21,6 +21,13 @@ if [ -n "$CHROOT_READY" ]; then makedepends="perl" fi +if [ -n "$XBPS_CROSS_BUILD" ]; then + crossmakedepends="zlib-devel" + configure_args="${configure_args} + ac_cv_fread_reads_directories=no + ac_cv_snprintf_returns_bogus=no" +fi + post_install() { # remove unneeded stuff. rm -rf ${DESTDIR}/usr/share/gitweb