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