patches/uClibc/0.9.30.1/140-gnu89-inline.patch
author Michael Hope <michael.hope@linaro.org>
Thu Sep 29 12:27:54 2011 +1300 (2011-09-29)
changeset 2694 2c01a02334ea
parent 1248 5402327d22fa
permissions -rw-r--r--
Makefile: use phony targets

Add 'build', 'build-*', and 'install' as phony targets to the top level
Makefile.

I tend to do everything in tree with the build in a directory called
'build'. This interfered with the target 'build', making it think the
target was up to date, and stopping scripts/crosstool-NG.sh from being
regenerated.

Added 'install' as I often set the prefix to $PWD/install.

Signed-off-by: Michael Hope <michael.hope@linaro.org>
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