toolchain.eclass: allow CTARGET to contain '.'
authorSergei Trofimovich <slyfox@gentoo.org>
Tue, 5 Sep 2017 19:16:41 +0000 (20:16 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Tue, 5 Sep 2017 21:01:35 +0000 (22:01 +0100)
commit423dce47c5f0cb8476f4b7bb6ebdd28f8d3684bf
tree8082cb280dd1a5d0bd686187a2103fc799ab8f49
parentb5eb13840558692e36a7ecd7f9c3d580d5ae4c10
toolchain.eclass: allow CTARGET to contain '.'

On CTARGET="hppa2.0-unknown-linux-gnu" the following code
    local VAR="CFLAGS_"${CTARGET//-/_}
    CXXFLAGS=${!VAR}
produces incorrect substitution:
    CFLAGS_hppa2.0_unknown_linux_gnu
which caused 'crossdev hppa2.0-unknown-linux-gnu' to fail.

The change adds '.' mangling as well.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/toolchain.eclass