[oe-commits] org.oe.dev Enable -fgnu89-inline on compilers that support it. This helps

khem commit oe at amethyst.openembedded.net
Mon Sep 1 18:16:54 UTC 2008


Enable -fgnu89-inline on compilers that support it. This helps
0.9.29 to compile with gcc 4.3.

Author: khem at openembedded.org
Branch: org.openembedded.dev
Revision: 7fd89d0a8aadce9435062c2d2b53220149205926
ViewMTN: http://monotone.openembedded.org/revision/info/7fd89d0a8aadce9435062c2d2b53220149205926
Files:
1
packages/uclibc/uclibc-0.9.29/uclibc-use-fgnu89-inline.patch
packages/uclibc/uclibc_0.9.29.bb
Diffs:

#
# mt diff -r103593f6f03c2d2ac9ab04058a63cacf2814841c -r7fd89d0a8aadce9435062c2d2b53220149205926
#
#
#
# add_file "packages/uclibc/uclibc-0.9.29/uclibc-use-fgnu89-inline.patch"
#  content [5dfb9586fa43464af763ff774e15dc0418a181de]
# 
# patch "packages/uclibc/uclibc_0.9.29.bb"
#  from [e35f597e006a79e860bcfcbc82d23c9b7dabf317]
#    to [2c4d925cc550f5ad6ccbee1fa5ad94b62db7b58c]
#
============================================================
--- packages/uclibc/uclibc-0.9.29/uclibc-use-fgnu89-inline.patch	5dfb9586fa43464af763ff774e15dc0418a181de
+++ packages/uclibc/uclibc-0.9.29/uclibc-use-fgnu89-inline.patch	5dfb9586fa43464af763ff774e15dc0418a181de
@@ -0,0 +1,34 @@
+Source: http://www.nabble.com/-PATCH--uclibc-extern-inline-td14223616.html
+
+Description:
+
+Needed for uclibc-0.9.29 to compile with gcc 4.3.1
+
+You get this error without
+
+libc/libc_so.a(libc_pthread_init.oS): In function `testandset':
+libc_pthread_init.c:(.text+0x0): multiple definition of `testandset'
+libc/libc_so.a(forward.oS):forward.c:(.text+0x0): first defined here
+libc/libc_so.a(rpc_thread.oS): In function `testandset':
+rpc_thread.c:(.text+0x0): multiple definition of `testandset'
+libc/libc_so.a(forward.oS):forward.c:(.text+0x0): first defined here
+make[1]: *** [lib/libc.so] Error 1
+make: *** [lib/libc.so.0] Error 2
+
+
+---
+ Rules.mak |    1 +
+ 1 file changed, 1 insertion(+)
+
+Index: uClibc-0.9.29/Rules.mak
+===================================================================
+--- uClibc-0.9.29.orig/Rules.mak	2008-08-19 13:43:56.000000000 -0700
++++ uClibc-0.9.29/Rules.mak	2008-08-19 13:45:04.000000000 -0700
+@@ -402,6 +402,7 @@ CFLAGS += -DSTATIC
+ endif
+ 
+ CFLAGS += $(call check_gcc,-std=gnu99,)
++CFLAGS += $(call check_gcc,-fgnu89-inline,)
+ 
+ LDFLAGS_NOSTRIP:=$(CPU_LDFLAGS-y) -shared --warn-common --warn-once -z combreloc
+ # binutils-2.16.1 warns about ignored sections, 2.16.91.0.3 and newer are ok
============================================================
--- packages/uclibc/uclibc_0.9.29.bb	e35f597e006a79e860bcfcbc82d23c9b7dabf317
+++ packages/uclibc/uclibc_0.9.29.bb	2c4d925cc550f5ad6ccbee1fa5ad94b62db7b58c
@@ -7,7 +7,7 @@ UCLIBC_BASE ?= "0.9.29"
 # on whether the base patches apply to the selected (SRCDATE) svn release.
 #
 UCLIBC_BASE ?= "0.9.29"
-PR = "r22"
+PR = "r23"
 DEFAULT_PREFERENCE = "1"
 
 require uclibc.inc
@@ -30,6 +30,7 @@ SRC_URI += "file://uClibc.machine file:/
 	    file://uClibc-0.9.29-nonposix_bashisms.patch;patch=1 \
             file://arm_fix_alignment.patch;patch=1 \
 	    file://uclibc-arm-ftruncate64.patch;patch=1 \
+	    file://uclibc-use-fgnu89-inline.patch;patch=1 \
            "
 
 #recent versions uclibc require real kernel headers






More information about the Openembedded-commits mailing list