1require glibc-common.inc 2require glibc-ld.inc 3 4DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}binutils${BUSUFFIX} libgcc-initial linux-libc-headers" 5BUSUFFIX= "" 6BUSUFFIX:class-nativesdk = "-crosssdk" 7 8PROVIDES = "virtual/libc" 9PROVIDES += "virtual/libintl virtual/libiconv" 10inherit autotools texinfo systemd 11 12LEAD_SONAME = "libc.so" 13 14# msgfmt could come from gettext-native but we don't depend on that and 15# disable for reproducibility 16CACHED_CONFIGUREVARS += " \ 17 ac_cv_path_BASH_SHELL=${base_bindir}/bash \ 18 ac_cv_prog_MSGFMT= \ 19 libc_cv_slibdir=${base_libdir} \ 20 libc_cv_rootsbindir=${base_sbindir} \ 21 libc_cv_localedir=${localedir} \ 22 libc_cv_ssp_strong=no \ 23 libc_cv_ssp_all=no \ 24 libc_cv_ssp=no \ 25 libc_cv_include_x86_isa_level=no \ 26" 27 28# ifunc doesn't appear to work on mips, casuses libbfd assertion failures 29CACHED_CONFIGUREVARS:append:mipsarch = " libc_cv_ld_gnu_indirect_function=no" 30 31GLIBC_EXTRA_OECONF ?= "" 32GLIBC_EXTRA_OECONF:class-nativesdk = "" 33 34# glibc uses PARALLELMFLAGS variable to pass parallel build info so transfer 35# PARALLEL_MAKE into PARALLELMFLAGS and empty out PARALLEL_MAKE 36EGLIBCPARALLELISM := "PARALLELMFLAGS="${PARALLEL_MAKE}"" 37EXTRA_OEMAKE[vardepsexclude] += "EGLIBCPARALLELISM" 38EXTRA_OEMAKE += "${EGLIBCPARALLELISM}" 39PARALLEL_MAKE = "" 40 41# glibc make-syscalls.sh has a number of issues with /bin/dash and 42# it's output which make calls via the SHELL also has issues, so 43# ensure make uses /bin/bash 44EXTRA_OEMAKE += "SHELL=/bin/bash" 45 46# We do not need bash to run tzselect script, the default is to use 47# bash but it can be configured by setting KSHELL Makefile variable 48EXTRA_OEMAKE += "KSHELL=/bin/sh" 49 50do_configure:prepend() { 51 sed -e "s#/bin/bash#/bin/sh#" -i ${S}/elf/ldd.bash.in 52} 53 54# Enable backtrace from abort() 55do_configure:append:arm () { 56 echo "CFLAGS-abort.c = -fasynchronous-unwind-tables" >> ${B}/configparms 57 echo "CFLAGS-raise.c = -fasynchronous-unwind-tables" >> ${B}/configparms 58} 59