mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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>
This commit is contained in:
@@ -1478,7 +1478,8 @@ gcc_do_filter_flags() {
|
||||
FFLAGS=${CFLAGS}
|
||||
FCFLAGS=${CFLAGS}
|
||||
|
||||
local VAR="CFLAGS_"${CTARGET//-/_}
|
||||
# "hppa2.0-unknown-linux-gnu" -> hppa2_0_unknown_linux_gnu
|
||||
local VAR="CFLAGS_"${CTARGET//[-.]/_}
|
||||
CXXFLAGS=${!VAR}
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user