sys-libs/glibc: Add support for building RISC-V headers
authorPalmer Dabbelt <palmer@dabbelt.com>
Tue, 3 Apr 2018 20:10:41 +0000 (13:10 -0700)
committerSergei Trofimovich <slyfox@gentoo.org>
Tue, 3 Apr 2018 20:21:18 +0000 (21:21 +0100)
commitad34d5e17e56a4a446402185cd67d7b920edf28f
tree0690db6f0d67919ae7cb8ef308dd985d4dc8ea0d
parent586d323b23989d7325316801bdab078c39541e35
sys-libs/glibc: Add support for building RISC-V headers

The RISC-V GCC port defines some extra preprocessor macros that glibc
uses to determine which RISC-V target is being compiled for.  Since
crossdev doesn't use a RISC-V compiler to build the headers, this blows
up.  These checks don't matter for building the headers because they're
the same on all RISC-V targets, so we just hack up the glibc build to
elide the check.
sys-libs/glibc/glibc-2.27-r1.ebuild