diff --git a/templates/gmp.tmpl b/templates/gmp.tmpl index 3580f148d1..ef7004bfae 100644 --- a/templates/gmp.tmpl +++ b/templates/gmp.tmpl @@ -23,3 +23,11 @@ long_desc=" base_chroot=yes run_depends="glibc-2.8" + +pre_configure() +{ + if [ "$xbps_machine" != "x86_64" ]; then + local triplet="$xbps_machine-pc-linux-gnu" + configure_args="--host=$triplet --build=$triplet" + fi +}