patches/uClibc/0.9.30.2/130-gnu89-inline.patch
author "Bryan Hundven" <bryanhundven@gmail.com>
Thu Mar 01 15:23:49 2012 -0800 (2012-03-01)
changeset 2909 28ac8fbd9e6a
parent 1737 e034c377c89d
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>
jocke@1737
     1
Original patch from Gentoo.
jocke@1737
     2
jocke@1737
     3
-= BEGIN original header =-
jocke@1737
     4
-= END original header =-
jocke@1737
     5
jocke@1737
     6
diff -durN uClibc-0.9.30.orig/Rules.mak uClibc-0.9.30/Rules.mak
jocke@1737
     7
--- uClibc-0.9.30.orig/Rules.mak	2008-11-12 13:24:16.000000000 +0100
jocke@1737
     8
+++ uClibc-0.9.30/Rules.mak	2009-02-07 09:57:59.000000000 +0100
jocke@1737
     9
@@ -519,6 +519,7 @@
jocke@1737
    10
 endif
jocke@1737
    11
 
jocke@1737
    12
 CFLAGS += $(call check_gcc,-std=gnu99,)
jocke@1737
    13
+CFLAGS += $(call check_gcc,-fgnu89-inline,)
jocke@1737
    14
 
jocke@1737
    15
 LDFLAGS_NOSTRIP:=$(CPU_LDFLAGS-y) -shared \
jocke@1737
    16
 	-Wl,--warn-common -Wl,--warn-once -Wl,-z,combreloc