config/libc/uClibc.in.2
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Jun 09 00:41:25 2010 +0200 (2010-06-09)
changeset 1977 d11009b668dd
child 2009 7e19c1de65cd
permissions -rw-r--r--
libc/uClibc: apply the threading model to the configuration

The threading model shall be be set in the .config file.
Also, offer the choice between 'old/stable' and 'new' linuxthreads.
yann@1977
     1
# uClibc second-part option
yann@1977
     2
yann@1977
     3
if THREADS_LINUXTHREADS
yann@1977
     4
yann@1977
     5
choice
yann@1977
     6
    bool
yann@1977
     7
    prompt "Linuxthread implementation: "
yann@1977
     8
    default LIBC_UCLIBC_LNXTHRD_OLD
yann@1977
     9
yann@1977
    10
config LIBC_UCLIBC_LNXTHRD_OLD
yann@1977
    11
    bool
yann@1977
    12
    prompt "old/stable"
yann@1977
    13
    help
yann@1977
    14
      From the uClibc config option help:
yann@1977
    15
        There are two versions of linuxthreads.  The older (stable) version
yann@1977
    16
        has been in uClibc for quite a long time but hasn't seen too many
yann@1977
    17
        updates other than bugfixes.
yann@1977
    18
yann@1977
    19
config LIBC_UCLIBC_LNXTHRD_NEW
yann@1977
    20
    bool
yann@1977
    21
    prompt "new"
yann@1977
    22
    help
yann@1977
    23
      From the uClibc config option help:
yann@1977
    24
        The new version has not been tested much, and lacks ports for arches
yann@1977
    25
        which glibc does not support (like bfin/frv/etc...), but is based on
yann@1977
    26
        the latest code from glibc, so it may be the only choice for the
yann@1977
    27
        newer ports (like alpha/amd64/64bit arches and hppa).
yann@1977
    28
yann@1977
    29
endchoice
yann@1977
    30
yann@1977
    31
config LIBC_UCLIBC_LNXTHRD
yann@1977
    32
    string
yann@1977
    33
    default "old"   if LIBC_UCLIBC_LNXTHRD_OLD
yann@1977
    34
    default "new"   if LIBC_UCLIBC_LNXTHRD_NEW
yann@1977
    35
yann@1977
    36
endif # THREADS_LINUXTHREADS