summaryrefslogtreecommitdiffstats
path: root/rules
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-25 15:03:42 +0100
commitd9de88cbe6272ba026258e51c0d5d8cd4923658b (patch)
tree6d4cede6fd51b71f0e260b65643eab40805d9adc /rules
parentd81f564b1ba07d3a6653cb759e7bc65139ba49c6 (diff)
downloadOSELAS.Toolchain-d9de88cbe6272ba026258e51c0d5d8cd4923658b.tar.gz
OSELAS.Toolchain-d9de88cbe6272ba026258e51c0d5d8cd4923658b.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>
Diffstat (limited to 'rules')
-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