commit: d9f3ca959f9e89ff89e1bdfb9fb642eb31eedc50
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 8 06:01:04 2016 +0000
Commit: Benda XU <heroxbd <AT> gentoo <DOT> 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
}