patches/uClibc/0.9.30.1/140-gnu89-inline.patch
author Thomas De Schampheleire <patrickdepinguin+buildroot@gmail.com>
Sat Jul 14 19:52:58 2012 +0200 (2012-07-14)
changeset 2998 7b1dda3ab075
parent 1248 5402327d22fa
permissions -rw-r--r--
kconfig: fix compatibility with older flex versions

Older flex versions require there be no space between options and
their arguments. For example '-P zconf' is not correct and should
be '-Pzconf'. This is for example the case for flex-2.5.4 shipped
with CentOS 5.8.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Message-Id: <9652ce148bddc1def484.1339241000@beantl019720>
yann@1248
     1
Original patch from Gentoo.
yann@1248
     2
yann@1248
     3
-= BEGIN original header =-
yann@1248
     4
-= END original header =-
yann@1248
     5
yann@1248
     6
diff -durN uClibc-0.9.30.orig/Rules.mak uClibc-0.9.30/Rules.mak
yann@1248
     7
--- uClibc-0.9.30.orig/Rules.mak	2008-11-12 13:24:16.000000000 +0100
yann@1248
     8
+++ uClibc-0.9.30/Rules.mak	2009-02-07 09:57:59.000000000 +0100
yann@1279
     9
@@ -519,6 +519,7 @@
yann@1248
    10
 endif
yann@1248
    11
 
yann@1248
    12
 CFLAGS += $(call check_gcc,-std=gnu99,)
yann@1248
    13
+CFLAGS += $(call check_gcc,-fgnu89-inline,)
yann@1248
    14
 
yann@1248
    15
 LDFLAGS_NOSTRIP:=$(CPU_LDFLAGS-y) -Wl,-shared \
yann@1248
    16
 	-Wl,--warn-common -Wl,--warn-once -Wl,-z,combreloc