blob: ad8000f5de1e738491cf2a5a0a89f3b8f24586de [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001#
2# glibc specific configuration
3#
4
Brad Bishop6e60e8b2018-02-01 10:27:11 -05005LIBCEXTENSION = "${@['', '-gnu'][(d.getVar('ABIEXTENSION') or '') != '']}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006
7# Add glibc overrides to the overrides for glibc.
8LIBCOVERRIDE = ":libc-glibc"
9OVERRIDES .= "${LIBCOVERRIDE}"
10
11PREFERRED_PROVIDER_virtual/libiconv ?= "glibc"
12PREFERRED_PROVIDER_virtual/nativesdk-libiconv ?= "nativesdk-glibc"
13PREFERRED_PROVIDER_virtual/nativesdk-libintl ?= "nativesdk-glibc"
14PREFERRED_PROVIDER_virtual/libintl ?= "glibc"
15PREFERRED_PROVIDER_virtual/libc ?= "glibc"
16PREFERRED_PROVIDER_virtual/nativesdk-libc ?= "nativesdk-glibc"
17PREFERRED_PROVIDER_virtual/libc-locale ?= "glibc-locale"
18
19CXXFLAGS += "-fvisibility-inlines-hidden"
20
21LIBC_DEPENDENCIES = "libsegfault \
22 glibc \
23 glibc-dbg \
24 glibc-dev \
25 glibc-utils \
26 glibc-thread-db \
27 ${@get_libc_locales_dependencies(d)}"
28
29LIBC_LOCALE_DEPENDENCIES = "\
30 glibc-localedata-i18n \
31 glibc-gconv-ibm850 \
32 glibc-gconv-cp1252 \
33 glibc-gconv-iso8859-1 \
34 glibc-gconv-iso8859-15"
35
36def get_libc_locales_dependencies(d):
Brad Bishop6e60e8b2018-02-01 10:27:11 -050037 if 'libc-locales' in (d.getVar('DISTRO_FEATURES') or '').split() :
38 return d.getVar('LIBC_LOCALE_DEPENDENCIES') or ''
Patrick Williamsc124f4f2015-09-15 14:41:29 -050039 else:
40 return ''