From 59d924e5120ea9e4dfa4746257413094f1d102b6 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 21 Nov 2008 16:55:58 +0100 Subject: [PATCH] gmp: fix stupid host/build detection in configure script on i386. --HG-- extra : convert_revision : f804f3d494ac110600b987cf96bcb6f151e16d9c --- templates/gmp.tmpl | 8 ++++++++ 1 file changed, 8 insertions(+) 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 +}