sys-libs/glibc: disable c++ detection for cross-case, bug #683074
authorSergei Trofimovich <slyfox@gentoo.org>
Fri, 19 Apr 2019 07:32:12 +0000 (07:32 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Fri, 19 Apr 2019 07:35:38 +0000 (07:35 +0000)
commit15fbfc075d699e498d73701b6f2a3f62d7dcabba
tree0e01dec354d67377cc2317760a2a1c4dd98d8001
parent7ab58257981444b49d25ef1bd4feab88849b0012
sys-libs/glibc: disable c++ detection for cross-case, bug #683074

https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=561b0bec4448f0302cb4915bf67c919bde4a1c57
in unstream glibc repo added optional dependency on CXX compiler.

Unfortunately ./configure tries hard to pass some g++ as CXX:
either ${CTARGET}-g++ (ok) or ${CBUILD}+g++ (bad).

During toolchain bootstrap ${CTARGET}-g++ does not yet exist
as we only have stage1-gcc without c++ (or libc) support.

To restore toolchain bootstrap we force-disable c++ detection
by setting cache variable:
    libc_cv_cxx_link_ok=no

c++ is force disables only for cross-compilation case
(CHOST != CTARGET). Cross-building case (CHOST = CTRAGET)
is unchanged as we should already have c++ capable toolchain
by then.

Reported-by: hanetzer@startmail.com
Reported-by: rhn
Closes: https://bugs.gentoo.org/683074
Package-Manager: Portage-2.3.63, Repoman-2.3.12
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
sys-libs/glibc/glibc-2.29-r2.ebuild
sys-libs/glibc/glibc-9999.ebuild