Sergei Trofimovich bdb069df28 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
2018-03-30 12:43:08 +01:00
2018-03-29 23:05:17 +02:00
2018-03-29 23:08:54 -04:00
2018-03-29 23:04:27 -04:00
2018-03-29 14:53:18 +02:00
2018-03-28 22:44:40 +11:00
2018-03-28 13:54:43 -07:00
2018-03-27 16:36:10 -04:00
2018-03-30 08:58:57 +02:00
2018-03-25 23:06:51 +02:00
2018-03-26 11:39:12 -07:00
2018-03-29 18:17:08 -04:00
2018-03-29 10:59:40 +03:00
2018-03-27 18:53:22 -04:00
2018-03-29 21:22:53 +02:00
2018-03-27 11:31:06 +02:00
2018-03-29 17:04:27 +02:00
2018-03-25 19:27:08 +02:00
S
Description
No description provided
9.8 GiB
Languages
Shell 98%
Roff 1.3%
Emacs Lisp 0.2%
C 0.1%