glibc.inc 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. do_configure:prepend() {
  36. sed -e "s#/bin/bash#/bin/sh#" -i ${S}/elf/ldd.bash.in
  37. }
  38. # Enable backtrace from abort()
  39. do_configure:append:arm () {
  40. echo "CFLAGS-abort.c = -fasynchronous-unwind-tables" >> ${B}/configparms
  41. echo "CFLAGS-raise.c = -fasynchronous-unwind-tables" >> ${B}/configparms
  42. }