diff options
Diffstat (limited to 'meta/recipes-core/glibc/glibc.inc')
-rw-r--r-- | meta/recipes-core/glibc/glibc.inc | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/meta/recipes-core/glibc/glibc.inc b/meta/recipes-core/glibc/glibc.inc index 7d14306377..b08a70aa46 100644 --- a/meta/recipes-core/glibc/glibc.inc +++ b/meta/recipes-core/glibc/glibc.inc | |||
@@ -1,7 +1,7 @@ | |||
1 | require glibc-common.inc | 1 | require glibc-common.inc |
2 | require glibc-ld.inc | 2 | require glibc-ld.inc |
3 | 3 | ||
4 | DEPENDS = "virtual/${TARGET_PREFIX}gcc libgcc-initial linux-libc-headers" | 4 | DEPENDS = "virtual/${HOST_PREFIX}gcc virtual/${HOST_PREFIX}binutils libgcc-initial linux-libc-headers" |
5 | 5 | ||
6 | PROVIDES = "virtual/libc" | 6 | PROVIDES = "virtual/libc" |
7 | PROVIDES += "virtual/libintl virtual/libiconv" | 7 | PROVIDES += "virtual/libintl virtual/libiconv" |
@@ -24,10 +24,10 @@ CACHED_CONFIGUREVARS += " \ | |||
24 | " | 24 | " |
25 | 25 | ||
26 | # ifunc doesn't appear to work on mips, casuses libbfd assertion failures | 26 | # ifunc doesn't appear to work on mips, casuses libbfd assertion failures |
27 | CACHED_CONFIGUREVARS_append_mipsarch = " libc_cv_ld_gnu_indirect_function=no" | 27 | CACHED_CONFIGUREVARS:append:mipsarch = " libc_cv_ld_gnu_indirect_function=no" |
28 | 28 | ||
29 | GLIBC_EXTRA_OECONF ?= "" | 29 | GLIBC_EXTRA_OECONF ?= "" |
30 | GLIBC_EXTRA_OECONF_class-nativesdk = "" | 30 | GLIBC_EXTRA_OECONF:class-nativesdk = "" |
31 | 31 | ||
32 | # glibc uses PARALLELMFLAGS variable to pass parallel build info so transfer | 32 | # glibc uses PARALLELMFLAGS variable to pass parallel build info so transfer |
33 | # PARALLEL_MAKE into PARALLELMFLAGS and empty out PARALLEL_MAKE | 33 | # PARALLEL_MAKE into PARALLELMFLAGS and empty out PARALLEL_MAKE |
@@ -41,12 +41,16 @@ PARALLEL_MAKE = "" | |||
41 | # ensure make uses /bin/bash | 41 | # ensure make uses /bin/bash |
42 | EXTRA_OEMAKE += "SHELL=/bin/bash" | 42 | EXTRA_OEMAKE += "SHELL=/bin/bash" |
43 | 43 | ||
44 | do_configure_prepend() { | 44 | # We do not need bash to run tzselect script, the default is to use |
45 | sed -e "s#@BASH@#/bin/sh#" -i ${S}/elf/ldd.bash.in | 45 | # bash but it can be configured by setting KSHELL Makefile variable |
46 | EXTRA_OEMAKE += "KSHELL=/bin/sh" | ||
47 | |||
48 | do_configure:prepend() { | ||
49 | sed -e "s#/bin/bash#/bin/sh#" -i ${S}/elf/ldd.bash.in | ||
46 | } | 50 | } |
47 | 51 | ||
48 | # Enable backtrace from abort() | 52 | # Enable backtrace from abort() |
49 | do_configure_append_arm () { | 53 | do_configure:append:arm () { |
50 | echo "CFLAGS-abort.c = -fasynchronous-unwind-tables" >> ${B}/configparms | 54 | echo "CFLAGS-abort.c = -fasynchronous-unwind-tables" >> ${B}/configparms |
51 | echo "CFLAGS-raise.c = -fasynchronous-unwind-tables" >> ${B}/configparms | 55 | echo "CFLAGS-raise.c = -fasynchronous-unwind-tables" >> ${B}/configparms |
52 | } | 56 | } |