patches/uClibc/0.9.32/170-Conditionalize-use-libgcc_eh-when-libubacktrace-is-n.patch
author "Bryan Hundven" <bryanhundven@gmail.com>
Thu Mar 01 15:23:49 2012 -0800 (2012-03-01)
changeset 2909 28ac8fbd9e6a
permissions -rw-r--r--
libg/eglibc: add updated eglibc 2.15

Includes a patch to remove __builtin_expect test:

In eglibc-2.15, the build breaks in configure while testing
for the existance of __builtin_expect. It fails with newer
versions of gcc.

This patch is a modification of an upstream change in glibc
mainline (to be 2.16) to fix the following error:

[CFG ] checking for __builtin_expect... no
[ERROR] configure: error: support for __builtin_expect needed

http://sourceware.org/git/?p=glibc.git;a=commit;h=3857022a761ea7251f8e5c0e45d382ebc3e34cf9

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