commit: f98dcf305b463f16e3e37a78a973802fc72f50fc 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: Fri Jun 10 01:47:29 2016 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=f98dcf30
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 a8ec06e..13fc48a 100755 --- a/scripts/bootstrap-prefix.sh +++ b/scripts/bootstrap-prefix.sh @@ -143,7 +143,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 }