config/libc/newlib.in
author Zoltan Devai <zdevai@gmail.com>
Wed Oct 28 12:03:38 2009 +0100 (2009-10-28)
branch1.5
changeset 1645 01d01185eb18
parent 1468 841be3d8669e
child 1590 b51724d5250d
permissions -rw-r--r--
libc/uClibc: fix building on system with recent glibc

While trying to build a toolchain with ct-ng 1.5.0,
arm-unknown-linux-uclibcgnueabi target,
I get the following error:

[INFO ] Installing C library headers
[EXTRA] Copying sources to build dir
[EXTRA] Applying configuration
[EXTRA] Building headers
[EXTRA] Installing headers
[ERROR] extra/scripts/unifdef.c:209: error: conflicting types for 'getline'
[ERROR] make[2]: *** [extra/scripts/unifdef] Error 1
[ERROR] Build failed in step 'Installing C library headers'

The following patch solves the problem.
(It's a backport of this uClibc commit:
http://git.uclibc.org/uClibc/commit/?id=49e81cada73616864b9b31df0aeb6961c30f5a6e
)

[--SNIP from another mail--]
AFAIK this is a problem since glibc 2.10.
(transplanted from 1ba79f2126df8bd89120899a58f2d0bcc2e9c771)
mgl@1371
     1
# newlib options
mgl@1371
     2
# depends on EXPERIMENTAL
mgl@1371
     3
mgl@1371
     4
config LIBC_newlib
mgl@1371
     5
    help
mgl@1371
     6
    Newlib is a C library intended for use on embedded systems. It is a 
mgl@1371
     7
    conglomeration of several library parts, all under free software 
mgl@1371
     8
    licenses that make them easily usable on embedded products. Newlib 
mgl@1371
     9
    is only available in source form. It can be compiled for a wide 
mgl@1371
    10
    array of processors, and will usually work on any architecture with
mgl@1371
    11
    the addition of a few low-level routines. 
mgl@1371
    12
mgl@1371
    13
choice
mgl@1371
    14
    bool
mgl@1371
    15
    prompt "newlib version"
yann@1535
    16
# Don't remove next line
yann@1535
    17
# CT_INSERT_VERSION_BELOW
mgl@1371
    18
mgl@1371
    19
config NEWLIB_V_1_17_0
mgl@1371
    20
    bool
mgl@1371
    21
    prompt "1.17.0"
mgl@1371
    22
mgl@1371
    23
endchoice
mgl@1371
    24
mgl@1371
    25
config LIBC_VERSION
mgl@1371
    26
    string
yann@1535
    27
# Don't remove next line
yann@1535
    28
# CT_INSERT_VERSION_STRING_BELOW
mgl@1371
    29
    default "1.17.0" if NEWLIB_V_1_17_0
mgl@1371
    30
mgl@1373
    31
config ATMEL_AVR32_HEADERS
mgl@1373
    32
    bool
mgl@1373
    33
    prompt "Install Atmel AVR32 headers"
mgl@1373
    34
    default y
mgl@1373
    35
    help
mgl@1373
    36
      Install Atmel AVR32 headers for native AVR32 development. Most
mgl@1373
    37
      AVR32 MCU devices are supported.
mgl@1373
    38
      
mgl@1373
    39
      If you do native AVR32 development you want to say 'Y' here.
mgl@1373
    40