From 05c94235e1d1c54244c658f5367f29ac76179f27 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 19 Jul 2013 09:15:51 +0200 Subject: [PATCH] apr: fix cross build. --- srcpkgs/apr/template | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/srcpkgs/apr/template b/srcpkgs/apr/template index 502d34baae..869dfcf541 100644 --- a/srcpkgs/apr/template +++ b/srcpkgs/apr/template @@ -17,6 +17,12 @@ long_desc=" that provides a predictable and consistent interface to underlying platform-specific implementations." +if [ "$CROSS_BUILD" -a "$XBPS_TARGET_MACHINE" != "x86_64" ]; then + configure_args+=" ac_cv_sizeof_struct_iovec=8" +else + configure_args+=" ac_cv_sizeof_struct_iovec=16" +fi + apr-devel_package() { depends="libuuid-devel apr>=${version}" short_desc+=" - development files"