Skip to contentSkip to conversation

toolchain-gcc: pre-expand LIBCEXTENSION before setting TOOLCHAIN_* vars

PATCH New Denys Dmytriyenko 1 participant 1 message Nov 19, 2016

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index e378f2d..cae46a4 100644
@@ -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