multilib.eclass: multilib_env(): set LIBDIR=lib for *-musl*
authorSergei Trofimovich <slyfox@gentoo.org>
Fri, 27 Mar 2020 23:47:15 +0000 (23:47 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Fri, 27 Mar 2020 23:54:41 +0000 (23:54 +0000)
commit26578a15abfca9149f296c33b754fa195e0ccf9b
treec91058ebd0ebbce8ee30255c9276f351eb76d862
parentba0d4bc94f655ff82d69276d79f9d85e8e8e01eb
multilib.eclass: multilib_env(): set LIBDIR=lib for *-musl*

In contrast to glibc musl profiles use 'lib' layour for 32-bit
and 64-bit targets. multilib_env() did not take it into account
and assumed glibc's lib64 layout.

That breaks crossdev as it uses multilib_env to extract target
definition. Native builds are unaffected by this change.

Bug: https://bugs.gentoo.org/675954
Bug: https://gcc.gnu.org/PR90077
Bug: https://github.com/gentoo/musl/issues/245
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/multilib.eclass
eclass/tests/multilib.sh