diff options
| author | Sergei Trofimovich <slyfox@gentoo.org> | 2018-03-30 12:41:50 +0100 |
|---|---|---|
| committer | Sergei Trofimovich <slyfox@gentoo.org> | 2018-03-30 12:43:08 +0100 |
| commit | bdb069df283ccbe1e3f5fd39bb2270ec640a67b7 (patch) | |
| tree | 0b0d69a46bcff9026e0d939cbaa5e6570b9ff828 /dev-db/mysql/mysql-5.6.39.ebuild | |
| parent | 1b31083fd156425cc687fee7058b74b752be768e (diff) | |
| download | gentoo-bdb069df283ccbe1e3f5fd39bb2270ec640a67b7.tar.gz gentoo-bdb069df283ccbe1e3f5fd39bb2270ec640a67b7.tar.bz2 gentoo-bdb069df283ccbe1e3f5fd39bb2270ec640a67b7.zip | |
sys-libs/glibc: fix glibc-headers bootstrap on non-multilib host
The error is found by wm_ attempting to build a cross-compiler
CHOST=powerpc-unknown-linux-gnu CTARGET=mips64-unknown-linux-gnu
Boostrap failed on glibc-headers (./configure phase) as:
configure:2623: powerpc-unknown-linux-gnu-gcc -mabi=n32 -c \
-O1 -pipe -U_FORTIFY_SOURCE conftest.c >&5
powerpc-unknown-linux-gnu-gcc: error: \
unrecognized command line option '-mabi=n32'; did you mean '-mabi=d32'?
Note how target's ABI is mexed into host's compiler flags.
The error above happens on every host=non-multilib target=multilib combination.
I've reproduced it on:
CHOST=i686-pc-linux-gnu CTARGET=mips64-unknown-linux-gnu
The fix is not to inject target's CFLAGS ABI into CC for
USE=headers-only bootstrap step as we don't have cross-compiler yet.
Tested by successfully bootstrapping cross-compiler on
CHOST=i686-pc-linux-gnu CTARGET=mips64-unknown-linux-gnu
Package-Manager: Portage-2.3.26, Repoman-2.3.7
Diffstat (limited to 'dev-db/mysql/mysql-5.6.39.ebuild')
0 files changed, 0 insertions, 0 deletions
