glibc.inc 1.8 KB

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