diff --git a/srcpkgs/apr-util/template b/srcpkgs/apr-util/template index dc1fb35b9a9..13436a674d4 100644 --- a/srcpkgs/apr-util/template +++ b/srcpkgs/apr-util/template @@ -4,7 +4,7 @@ version=1.6.1 revision=8 build_style=gnu-configure configure_args=" - --with-apr=${XBPS_CROSS_BASE}/usr/bin/apr-1-config --with-pgsql --with-ldap + --with-pgsql --with-ldap --with-expat=${XBPS_CROSS_BASE}/usr --with-gdbm=${XBPS_CROSS_BASE}/usr --with-sqlite3=${XBPS_CROSS_BASE}/usr --with-mysql=${XBPS_CROSS_BASE}/usr --with-berkeley-db=${XBPS_CROSS_BASE}/usr --with-odbc=${XBPS_CROSS_BASE}/usr @@ -28,6 +28,11 @@ fi pre_configure() { sed -i configure \ -e "s;^\( APR_BUILD_DIR=\).*$;\1${XBPS_CROSS_BASE}/usr/share/apr-1/build;" + if [ "$CROSS_BUILD" ]; then + configure_args+=" --with-apr=${XBPS_WRAPPERDIR}/apr-1-config" + else + configure_args+=" --with-apr=/usr/bin/apr-1-config" + fi } post_configure() {