blob: 8d1076440fd1cf3e9620b093ccd42a2b66076586 [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
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007LIBCOVERRIDE = ":libc-glibc"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05008
9PREFERRED_PROVIDER_virtual/libiconv ?= "glibc"
10PREFERRED_PROVIDER_virtual/nativesdk-libiconv ?= "nativesdk-glibc"
11PREFERRED_PROVIDER_virtual/nativesdk-libintl ?= "nativesdk-glibc"
12PREFERRED_PROVIDER_virtual/libintl ?= "glibc"
13PREFERRED_PROVIDER_virtual/libc ?= "glibc"
14PREFERRED_PROVIDER_virtual/nativesdk-libc ?= "nativesdk-glibc"
15PREFERRED_PROVIDER_virtual/libc-locale ?= "glibc-locale"
16
17CXXFLAGS += "-fvisibility-inlines-hidden"
18
19LIBC_DEPENDENCIES = "libsegfault \
20 glibc \
21 glibc-dbg \
22 glibc-dev \
23 glibc-utils \
24 glibc-thread-db \
25 ${@get_libc_locales_dependencies(d)}"
26
27LIBC_LOCALE_DEPENDENCIES = "\
28 glibc-localedata-i18n \
29 glibc-gconv-ibm850 \
30 glibc-gconv-cp1252 \
31 glibc-gconv-iso8859-1 \
32 glibc-gconv-iso8859-15"
33
34def get_libc_locales_dependencies(d):
Brad Bishop6e60e8b2018-02-01 10:27:11 -050035 if 'libc-locales' in (d.getVar('DISTRO_FEATURES') or '').split() :
36 return d.getVar('LIBC_LOCALE_DEPENDENCIES') or ''
Patrick Williamsc124f4f2015-09-15 14:41:29 -050037 else:
38 return ''