patches/uClibc/0.9.30.2/250-libc-Fix-typo-in-include-rpc.patch
author Johannes Stezenbach <js@sig21.net>
Thu Jul 29 19:47:16 2010 +0200 (2010-07-29)
changeset 2045 fdaa6c7f6dea
permissions -rw-r--r--
cc/gcc: add option to compile against static libstdc++, for gcc-4.4 and newer

Idea and know-how taken from CodeSourcery build script.

Normal build:
$ ldd arm-unknown-linux-uclibcgnueabi-gcc
linux-gate.so.1 => (0xb77f3000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb76e8000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb75a1000)
libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb757a000)
/lib/ld-linux.so.2 (0xb77f4000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb755c000)

CC_STATIC_LIBSTDCXX=y:
$ ldd arm-unknown-linux-uclibcgnueabi-gcc
linux-gate.so.1 => (0xb7843000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb76e6000)
/lib/ld-linux.so.2 (0xb7844000)

I made CC_STATIC_LIBSTDCXX default=y since I think
it is always desirable.

Signed-off-by: Johannes Stezenbach <js@sig21.net>
     1 From b4d6a6e94d87ff2b4ae687a21048833f19b9dd48 Mon Sep 17 00:00:00 2001
     2 From: Carmelo Amoroso <carmelo.amoroso@st.com>
     3 Date: Mon, 8 Feb 2010 16:24:06 +0100
     4 Subject: [PATCH 11/15] libc: Fix typo in include/rpc
     5 
     6 s/GNU_SOUCE/GNU_SOURCE/ in include/rcp/
     7 
     8 Signed-off-by: Jason Woodward <jason.woodward@timesys.com>
     9 Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
    10 ---
    11  include/rpc/auth.h  |    4 ++--
    12  include/rpc/rpc.h   |    4 ++--
    13  include/rpc/types.h |    4 ++--
    14  3 files changed, 6 insertions(+), 6 deletions(-)
    15 
    16 diff --git a/include/rpc/auth.h b/include/rpc/auth.h
    17 index 17eb59f..12297e6 100644
    18 --- a/include/rpc/auth.h
    19 +++ b/include/rpc/auth.h
    20 @@ -47,8 +47,8 @@
    21  #ifndef __FORCE_GLIBC
    22  #define __FORCE_GLIBC
    23  #endif
    24 -#ifndef _GNU_SOUCE
    25 -#define _GNU_SOUCE
    26 +#ifndef _GNU_SOURCE
    27 +#define _GNU_SOURCE
    28  #endif
    29  #define _(X)	X
    30  #endif
    31 diff --git a/include/rpc/rpc.h b/include/rpc/rpc.h
    32 index 8194ffe..219910e 100644
    33 --- a/include/rpc/rpc.h
    34 +++ b/include/rpc/rpc.h
    35 @@ -44,8 +44,8 @@
    36  #ifndef __FORCE_GLIBC
    37  #define __FORCE_GLIBC
    38  #endif
    39 -#ifndef _GNU_SOUCE
    40 -#define _GNU_SOUCE
    41 +#ifndef _GNU_SOURCE
    42 +#define _GNU_SOURCE
    43  #endif
    44  #define _(X)	X
    45  #include <features.h>
    46 diff --git a/include/rpc/types.h b/include/rpc/types.h
    47 index 469576e..05f49c3 100644
    48 --- a/include/rpc/types.h
    49 +++ b/include/rpc/types.h
    50 @@ -39,8 +39,8 @@
    51  #ifndef __FORCE_GLIBC
    52  #define __FORCE_GLIBC
    53  #endif
    54 -#ifndef _GNU_SOUCE
    55 -#define _GNU_SOUCE
    56 +#ifndef _GNU_SOURCE
    57 +#define _GNU_SOURCE
    58  #endif
    59  #define _(X)	X
    60  #endif
    61 -- 
    62 1.6.6.1
    63