Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # |
| 2 | # glibc specific configuration |
| 3 | # |
| 4 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 5 | LIBCEXTENSION = "${@['', '-gnu'][(d.getVar('ABIEXTENSION') or '') != '']}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 6 | |
| 7 | # Add glibc overrides to the overrides for glibc. |
| 8 | LIBCOVERRIDE = ":libc-glibc" |
| 9 | OVERRIDES .= "${LIBCOVERRIDE}" |
| 10 | |
| 11 | PREFERRED_PROVIDER_virtual/libiconv ?= "glibc" |
| 12 | PREFERRED_PROVIDER_virtual/nativesdk-libiconv ?= "nativesdk-glibc" |
| 13 | PREFERRED_PROVIDER_virtual/nativesdk-libintl ?= "nativesdk-glibc" |
| 14 | PREFERRED_PROVIDER_virtual/libintl ?= "glibc" |
| 15 | PREFERRED_PROVIDER_virtual/libc ?= "glibc" |
| 16 | PREFERRED_PROVIDER_virtual/nativesdk-libc ?= "nativesdk-glibc" |
| 17 | PREFERRED_PROVIDER_virtual/libc-locale ?= "glibc-locale" |
| 18 | |
| 19 | CXXFLAGS += "-fvisibility-inlines-hidden" |
| 20 | |
| 21 | LIBC_DEPENDENCIES = "libsegfault \ |
| 22 | glibc \ |
| 23 | glibc-dbg \ |
| 24 | glibc-dev \ |
| 25 | glibc-utils \ |
| 26 | glibc-thread-db \ |
| 27 | ${@get_libc_locales_dependencies(d)}" |
| 28 | |
| 29 | LIBC_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 | |
| 36 | def get_libc_locales_dependencies(d): |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 37 | if 'libc-locales' in (d.getVar('DISTRO_FEATURES') or '').split() : |
| 38 | return d.getVar('LIBC_LOCALE_DEPENDENCIES') or '' |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 39 | else: |
| 40 | return '' |