patches/uClibc/0.9.32/170-Conditionalize-use-libgcc_eh-when-libubacktrace-is-n.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jul 17 22:43:07 2011 +0200 (2011-07-17)
changeset 2893 a8a65758664f
permissions -rw-r--r--
cc/gcc: do not use the core pass-2 to build the baremetal compiler

In case we build a baremetal compiler, use the standard passes:
- core_cc is used to build the C library;
- as such, it is meant to run on build, not host;
- the final compiler is meant to run on host;

As the current final compiler step can not build a baremetal compiler,
call the core backend from the final step.

NB: Currently, newlib is built during the start_files pass, so we have
to have a core compiler by then... Once we can build the baremetal
compiler from the final cc step, then we can move the newlib build to
the proper step, and then get rid of the core pass-1 static compiler...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
yann@2669
     1
From the uClibc ML archives:
yann@2669
     2
    http://lists.uclibc.org/pipermail/uclibc/2011-June/045411.html
yann@2669
     3
yann@2669
     4
>From 364a3a9c576d604bed146efe0b8b33d2b81d4c64 Mon Sep 17 00:00:00 2001
yann@2669
     5
From: Jason Woodward <jason.woodward@timesys.com>
yann@2669
     6
Date: Sat, 11 Jun 2011 01:08:48 -0400
yann@2669
     7
Subject: [PATCH 1/3] Conditionalize use libgcc_eh when libubacktrace is not enabled
yann@2669
     8
yann@2669
     9
Signed-off-by: Jason Woodward <jason.woodward@timesys.com>
yann@2669
    10
---
yann@2669
    11
 libubacktrace/Makefile.in |    2 +-
yann@2669
    12
 1 files changed, 1 insertions(+), 1 deletions(-)
yann@2669
    13
yann@2669
    14
diff --git a/libubacktrace/Makefile.in b/libubacktrace/Makefile.in
yann@2669
    15
index f75f68b..880a8af 100644
yann@2669
    16
--- a/libubacktrace/Makefile.in
yann@2669
    17
+++ b/libubacktrace/Makefile.in
yann@2669
    18
@@ -12,7 +12,7 @@ CFLAGS-libubacktrace := -DNOT_IN_libc -DIS_IN_libubacktrace $(SSP_ALL_CFLAGS)
yann@2669
    19
 
yann@2669
    20
 LDFLAGS-libubacktrace.so := $(LDFLAGS) $(top_builddir)lib/libdl-$(VERSION).so
yann@2669
    21
 
yann@2669
    22
-ifeq ($(CONFIG_ARM_EABI),y)
yann@2669
    23
+ifeq ($(UCLIBC_HAS_BACKTRACE)$(CONFIG_ARM_EABI),yy)
yann@2669
    24
 LIBGCC += $(shell $(CC) -print-file-name=libgcc_eh.a)
yann@2669
    25
 endif
yann@2669
    26
 
yann@2669
    27
-- 
yann@2669
    28
1.7.0.4
yann@2669
    29