toolchain-gcc: pre-expand LIBCEXTENSION before setting TOOLCHAIN_* vars
PATCH 1/1 toolchain-gcc: pre-expand LIBCEXTENSION before setting TOOLCHAIN_* vars
From: Denys Dmytriyenko <[email protected]>
Since libc-related variables are set after distro configs are parsed, immediate expansion of TOOLCHAIN_* variables makes them incorrect. The only dependency is on LIBCEXTENSION, so set it early here.
Signed-off-by Denys Dmytriyenko <[email protected]>
--- meta-arago-distro/conf/distro/include/toolchain-gcc.inc | 2 ++ 1 file changed, 2 insertions(+)
meta-arago-distro/conf/distro/include/toolchain-gcc.inc +2 -0
@@ -2,6 +2,8 @@ TCMODE = "default" TCLIBC = "glibc" +LIBCEXTENSION = "${@['', '-gnu'][(d.getVar('ABIEXTENSION', True) or '') != '']}" + # Match some of the external vars TOOLCHAIN_SYS := "${TARGET_SYS}" TOOLCHAIN_PREFIX := "${TARGET_PREFIX}"
Signature · 1 line
2.7.4