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