summaryrefslogtreecommitdiffstats
path: root/meta/conf/distro/include/tclibc-eglibc.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/conf/distro/include/tclibc-eglibc.inc')
-rw-r--r--meta/conf/distro/include/tclibc-eglibc.inc40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/conf/distro/include/tclibc-eglibc.inc b/meta/conf/distro/include/tclibc-eglibc.inc
new file mode 100644
index 0000000..15f5ee5
--- /dev/null
+++ b/meta/conf/distro/include/tclibc-eglibc.inc
@@ -0,0 +1,40 @@
1#
2# eglibc specific configuration
3#
4
5LIBCEXTENSION = "${@['', '-gnu'][(d.getVar('ABIEXTENSION', True) or '') != '']}"
6
7# Add glibc overrides to the overrides for eglibc.
8LIBCOVERRIDE = ":libc-glibc"
9OVERRIDES .= "${LIBCOVERRIDE}"
10
11PREFERRED_PROVIDER_virtual/libiconv ?= "eglibc"
12PREFERRED_PROVIDER_virtual/nativesdk-libiconv ?= "nativesdk-eglibc"
13PREFERRED_PROVIDER_virtual/nativesdk-libintl ?= "nativesdk-eglibc"
14PREFERRED_PROVIDER_virtual/libintl ?= "eglibc"
15PREFERRED_PROVIDER_virtual/libc ?= "eglibc"
16PREFERRED_PROVIDER_virtual/nativesdk-libc ?= "nativesdk-eglibc"
17PREFERRED_PROVIDER_virtual/libc-locale ?= "eglibc-locale"
18
19CXXFLAGS += "-fvisibility-inlines-hidden"
20
21LIBC_DEPENDENCIES = "libsegfault \
22 eglibc \
23 eglibc-dbg \
24 eglibc-dev \
25 eglibc-utils \
26 eglibc-thread-db \
27 ${@get_libc_locales_dependencies(d)}"
28
29LIBC_LOCALE_DEPENDENCIES = "\
30 eglibc-localedata-i18n \
31 eglibc-gconv-ibm850 \
32 eglibc-gconv-cp1252 \
33 eglibc-gconv-iso8859-1 \
34 eglibc-gconv-iso8859-15"
35
36def get_libc_locales_dependencies(d):
37 if 'libc-locales' in (d.getVar('DISTRO_FEATURES', True) or '').split() :
38 return d.getVar('LIBC_LOCALE_DEPENDENCIES', True) or ''
39 else:
40 return ''