From 7cae8968cb65f478b6b4c6e67cf99eefa3d5003e Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Wed, 10 Apr 2013 23:42:50 +0000 Subject: [PATCH] =?UTF-8?q?build:=20if=20uname=20says=20x86=5F64=20but=20g?= =?UTF-8?q?etconf=20LONG=5FBIT=20returns=2032,=20we=E2=80=99re=20on=20i386?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/run-bitten.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/run-bitten.sh b/build/run-bitten.sh index a46d8d7f..a5004b61 100755 --- a/build/run-bitten.sh +++ b/build/run-bitten.sh @@ -98,7 +98,10 @@ esac append "name = $name" processor="`uname -m`" case "$processor" in - x86_64) processor="amd64" ;; + x86_64) processor="amd64" + if test "`getconf LONG_BIT 2>/dev/null`" = 32; then + processor="i386" + fi ;; i*86) processor="i386" ;; esac # Windows defines a lot of crazy shit, try to make sense of it