summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Bießmann <andreas@biessmann.de>2012-01-19 09:50:49 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-01-26 11:07:58 +0100
commit207e2da5e5431efa09f852f15e3c077c79a068da (patch)
tree4f080fe6061afbdea8fd2c7bf6013da04d58bdef
parent3dc646399173c4e6874c97104b178d4446b96df9 (diff)
downloadOSELAS.Toolchain-207e2da5e5431efa09f852f15e3c077c79a068da.tar.gz
OSELAS.Toolchain-207e2da5e5431efa09f852f15e3c077c79a068da.tar.xz
glibc-headers: use freshly generated binutils
Some systems do not provide GNU binutils in sufficient versions to build the glibc-headers. Building glibc later on, however, will use the freshly generated cross-binutils and fulfill the GNU binutils version requirement. Use the freshly generated binutils for glibc-headers too. Signed-off-by: Andreas Bießmann <andreas@biessmann.de> [mol: use COMPILER_PREFIX and add dependency] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> (cherry picked from commit d9de88cbe6272ba026258e51c0d5d8cd4923658b) Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/glibc-headers.make5
-rw-r--r--rules/glibc.in1
2 files changed, 6 insertions, 0 deletions
diff --git a/rules/glibc-headers.make b/rules/glibc-headers.make
index 7a729dd..205e292 100644
--- a/rules/glibc-headers.make
+++ b/rules/glibc-headers.make
@@ -50,6 +50,11 @@ GLIBC_HEADERS_ENV := \
$(HOST_ENV) \
CC="$${CC} $(PTXCONF_GLIBC_HEADERS_FAKE_CROSS)" \
\
+ libc_cv_prog_as_gnu=yes \
+ libc_cv_prog_ld_gnu=yes \
+ ac_cv_prog_AS="$(PTXCONF_SYSROOT_CROSS)/bin/$(COMPILER_PREFIX)as" \
+ ac_cv_prog_LD="$(PTXCONF_SYSROOT_CROSS)/bin/$(COMPILER_PREFIX)ld" \
+ \
libc_cv_asm_cfi_directive_sections=yes \
libc_cv_asm_cfi_directives=yes \
libc_cv_asm_protected_directive=yes \
diff --git a/rules/glibc.in b/rules/glibc.in
index 7bcee6f..fe876ac 100644
--- a/rules/glibc.in
+++ b/rules/glibc.in
@@ -3,6 +3,7 @@
config GLIBC_HEADERS
bool
select KERNEL_HEADERS
+ select CROSS_BINUTILS
config GLIBC_CRT
bool