* [PATCH] toolchain-gcc: pre-expand LIBCEXTENSION before setting TOOLCHAIN_* vars
@ 2016-11-19 18:54 Denys Dmytriyenko
0 siblings, 0 replies; only message in thread
From: Denys Dmytriyenko @ 2016-11-19 18:54 UTC (permalink / raw)
To: meta-arago
From: Denys Dmytriyenko <denys@ti.com>
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 <denys@ti.com>
---
meta-arago-distro/conf/distro/include/toolchain-gcc.inc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-arago-distro/conf/distro/include/toolchain-gcc.inc b/meta-arago-distro/conf/distro/include/toolchain-gcc.inc
index e378f2d..cae46a4 100644
--- a/meta-arago-distro/conf/distro/include/toolchain-gcc.inc
+++ b/meta-arago-distro/conf/distro/include/toolchain-gcc.inc
@@ -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}"
--
2.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-11-19 18:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-19 18:54 [PATCH] toolchain-gcc: pre-expand LIBCEXTENSION before setting TOOLCHAIN_* vars Denys Dmytriyenko
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.