From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 77BF61382B5 for ; Wed, 15 Jun 2016 07:58:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C73B1E096E; Wed, 15 Jun 2016 07:58:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 49672E096E for ; Wed, 15 Jun 2016 07:58:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DCD0C3403C1 for ; Wed, 15 Jun 2016 07:58:48 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 990241BA1 for ; Wed, 15 Jun 2016 07:58:44 +0000 (UTC) From: "Benda XU" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Benda XU" Message-ID: <1465977502.d9f3ca959f9e89ff89e1bdfb9fb642eb31eedc50.heroxbd@gentoo> Subject: [gentoo-commits] repo/proj/prefix:master commit in: scripts/ X-VCS-Repository: repo/proj/prefix X-VCS-Files: scripts/bootstrap-prefix.sh X-VCS-Directories: scripts/ X-VCS-Committer: heroxbd X-VCS-Committer-Name: Benda XU X-VCS-Revision: d9f3ca959f9e89ff89e1bdfb9fb642eb31eedc50 X-VCS-Branch: master Date: Wed, 15 Jun 2016 07:58:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a31c67bb-f23f-46f7-ab26-ee3594765071 X-Archives-Hash: 3f9e56366501d4b1a3585bf94f74caff Message-ID: <20160615075844.B_mEUCFpQjPb33VytdJirtEJqLiodYTzyUGz7Pwc9eY@z> commit: d9f3ca959f9e89ff89e1bdfb9fb642eb31eedc50 Author: Benda Xu gentoo org> AuthorDate: Wed Jun 8 06:01:04 2016 +0000 Commit: Benda XU gentoo org> CommitDate: Wed Jun 15 07:58:22 2016 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=d9f3ca95 s/bootstrap-prefix.sh: figure out ABI flags of x86. scripts/bootstrap-prefix.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh index feeb58b..9cda6b8 100755 --- a/scripts/bootstrap-prefix.sh +++ b/scripts/bootstrap-prefix.sh @@ -138,7 +138,11 @@ configure_cflags() { export CXX="${CXX-g++} -m32" export HOSTCC="${CC}" ;; - *) + i*86-pc-linux-gnu) + if [[ $(${CC} -dumpspecs | grep -A1 multilib_default) != *m32 ]]; then + export CC="${CC-gcc} -m32" + export CXX="${CXX-g++} -m32" + fi ;; esac }