config/libc/glibc-eglibc.in-common
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Apr 19 16:17:11 2009 +0000 (2009-04-19)
branchnewlib
changeset 1365 c4d124ed9f8e
parent 1211 5dc29dbd1523
child 1314 34d1b285c5db
child 1366 5e5d1e6f55d3
permissions -rw-r--r--
Update the newlib devel branch with stuf from /trunk.

-------- diffstat follows --------
/devel/newlib/configure | 8 4 4 0
/devel/newlib/scripts/build/kernel/linux.sh | 2 1 1 0
/devel/newlib/scripts/build/cc/gcc.sh | 34 22 12 0 +
/devel/newlib/scripts/build/debug/300-gdb.sh | 52 45 7 0 +
/devel/newlib/scripts/build/libc/uClibc.sh | 6 3 3 0
/devel/newlib/scripts/build/mpfr.sh | 2 1 1 0
/devel/newlib/scripts/crosstool-NG.sh.in | 20 18 2 0 +
/devel/newlib/scripts/functions | 44 34 10 0 +
/devel/newlib/patches/glibc/2_9/500-ppc-glibc-2.9-atomic.patch | 414 0 414 0 ----------
/devel/newlib/patches/glibc/2_9/140-regex-BZ9697.patch | 111 0 111 0 ---
/devel/newlib/patches/glibc/2_9/190-queue-header-updates.patch | 89 0 89 0 --
/devel/newlib/patches/glibc/2_9/370-hppa_glibc-2.7-hppa-nptl-carlos.patch | 249 0 249 0 ------
/devel/newlib/patches/glibc/2_9/450-alpha-glibc-2.5-no-page-header.patch | 32 0 32 0 -
/devel/newlib/patches/glibc/2_9/330-2.3.3-china.patch | 35 0 35 0 -
/devel/newlib/patches/glibc/2_9/270-ldbl-nexttowardf.patch | 68 0 68 0 --
/devel/newlib/patches/glibc/2_9/410-2.9-fnmatch.patch | 64 0 64 0 --
/devel/newlib/patches/glibc/2_9/340-new-valencian-locale.patch | 120 0 120 0 ---
/devel/newlib/patches/glibc/2_9/350-2.4-undefine-__i686.patch | 47 0 47 0 -
/devel/newlib/patches/glibc/2_9/160-i386-x86_64-revert-clone-cfi.patch | 53 0 53 0 -
/devel/newlib/patches/glibc/2_9/150-regex-BZ697.patch | 28 0 28 0 -
/devel/newlib/patches/glibc/2_9/420-dont-build-timezone.patch | 19 0 19 0 -
/devel/newlib/patches/glibc/2_9/290-no-inline-gmon.patch | 38 0 38 0 -
/devel/newlib/patches/glibc/2_9/280-section-comments.patch | 29 0 29 0 -
/devel/newlib/patches/glibc/2_9/180-math-tests.patch | 72 0 72 0 --
/devel/newlib/patches/glibc/2_9/250-resolv-dynamic.patch | 44 0 44 0 -
/devel/newlib/patches/glibc/2_9/120-_nss_dns_gethostbyaddr2_r-check-and-adjust-the-buffer-alignment.patch | 35 0 35 0 -
/devel/newlib/patches/glibc/2_9/300-2.9-check_native-headers.patch | 22 0 22 0 -
/devel/newlib/patches/glibc/2_9/130-add_prio-macros.patch | 26 0 26 0 -
/devel/newlib/patches/glibc/2_9/310-2.3.6-fix-pr631.patch | 50 0 50 0 -
/devel/newlib/patches/glibc/2_9/510-sh-no-asm-user-header.patch | 70 0 70 0 --
/devel/newlib/patches/glibc/2_9/260-fadvise64_64.patch | 30 0 30 0 -
/devel/newlib/patches/glibc/2_9/440-alpha-glibc-2.4-xstat.patch | 249 0 249 0 ------
/devel/newlib/patches/glibc/2_9/170-2.10-dns-no-gethostbyname4.patch | 35 0 35 0 -
/devel/newlib/patches/glibc/2_9/230-2.3.3-localedef-fix-trampoline.patch | 74 0 74 0 --
/devel/newlib/patches/glibc/2_9/480-alpha-glibc-2.8-cache-shape.patch | 18 0 18 0 -
/devel/newlib/patches/glibc/2_9/360-2.8-nscd-one-fork.patch | 45 0 45 0 -
/devel/newlib/patches/glibc/2_9/210-2.9-strlen-hack.patch | 109 0 109 0 ---
/devel/newlib/patches/glibc/2_9/320-2.9-assume-pipe2.patch | 59 0 59 0 -
/devel/newlib/patches/glibc/2_9/100-ssp-compat.patch | 193 0 193 0 -----
/devel/newlib/patches/glibc/2_9/110-respect-env-CPPFLAGS.patch | 30 0 30 0 -
/devel/newlib/patches/glibc/2_9/220-manual-no-perl.patch | 29 0 29 0 -
/devel/newlib/patches/glibc/2_9/390-2.3.3_pre20040117-pt_pax.patch | 35 0 35 0 -
/devel/newlib/patches/glibc/2_9/460-alpha-glibc-2.5-no-asm-elf-header.patch | 38 0 38 0 -
/devel/newlib/patches/glibc/2_9/400-tests-sandbox-libdl-paths.patch | 198 0 198 0 -----
/devel/newlib/patches/glibc/2_9/520-sh-no-asm-elf-header.patch | 27 0 27 0 -
/devel/newlib/patches/glibc/2_9/240-i386-LOAD_PIC_REG.patch | 23 0 23 0 -
/devel/newlib/patches/glibc/2_9/200-awk-in-C-locale.patch | 23 0 23 0 -
/devel/newlib/patches/glibc/2_9/430-2.7-cross-compile-nptl.patch | 57 0 57 0 -
/devel/newlib/patches/glibc/2_9/380-2.3.6-dl_execstack-PaX-support.patch | 71 0 71 0 --
/devel/newlib/patches/glibc/2_9/490-ptr-mangling.patch | 114 0 114 0 ---
/devel/newlib/patches/glibc/2_9/470-alpha-glibc-2.8-creat.patch | 19 0 19 0 -
/devel/newlib/patches/glibc/ports-2_9/100-arm_linux_tls.patch | 14 0 14 0 -
/devel/newlib/patches/uClibc/0.9.30.1/140-gnu89-inline.patch | 2 1 1 0
/devel/newlib/docs/known-issues.txt | 16 15 1 0 +
/devel/newlib/docs/overview.txt | 2 1 1 0
/devel/newlib/samples/armeb-unknown-linux-uclibc/uClibc-0.9.30.config | 243 0 243 0 ------
/devel/newlib/samples/armeb-unknown-linux-uclibc/crosstool.config | 78 55 23 0 +-
/devel/newlib/samples/sh4-unknown-linux-gnu/crosstool.config | 35 18 17 0 +
/devel/newlib/samples/x86_64-unknown-linux-gnu/crosstool.config | 104 68 36 0 +--
/devel/newlib/samples/arm-unknown-elf/crosstool.config | 54 47 7 0 +
/devel/newlib/samples/armeb-unknown-eabi/crosstool.config | 54 47 7 0 +
/devel/newlib/samples/arm-unknown-linux-gnueabi/crosstool.config | 113 73 40 0 +--
/devel/newlib/samples/ia64-unknown-linux-gnu/crosstool.config | 91 61 30 0 +-
/devel/newlib/samples/x86_64-unknown-linux-uclibc/uClibc-0.9.30.config | 245 0 245 0 ------
/devel/newlib/samples/x86_64-unknown-linux-uclibc/crosstool.config | 78 55 23 0 +-
/devel/newlib/samples/armeb-unknown-linux-gnueabi/crosstool.config | 105 69 36 0 +--
/devel/newlib/samples/powerpc-e500v2-linux-gnuspe/crosstool.config | 96 63 33 0 +-
/devel/newlib/samples/i686-nptl-linux-gnu/crosstool.config | 78 48 30 0 +-
/devel/newlib/samples/arm-unknown-linux-gnu/crosstool.config | 105 69 36 0 +--
/devel/newlib/samples/powerpc-unknown-linux-gnu/crosstool.config | 103 67 36 0 +-
/devel/newlib/samples/mips-unknown-linux-uclibc/uClibc-0.9.30.config | 254 0 254 0 ------
/devel/newlib/samples/mips-unknown-linux-uclibc/crosstool.config | 77 54 23 0 +-
/devel/newlib/samples/arm-unknown-linux-uclibcgnueabi/uClibc-0.9.30.config | 253 0 253 0 ------
/devel/newlib/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config | 78 55 23 0 +-
/devel/newlib/samples/arm-iphone-linux-gnueabi/crosstool.config | 84 57 27 0 +-
/devel/newlib/samples/armeb-unknown-linux-gnu/crosstool.config | 105 69 36 0 +--
/devel/newlib/samples/powerpc-unknown_nofpu-linux-gnu/crosstool.config | 104 68 36 0 +--
/devel/newlib/samples/i586-geode-linux-uclibc/uClibc-0.9.30.config | 263 0 263 0 ------
/devel/newlib/samples/i586-geode-linux-uclibc/crosstool.config | 78 55 23 0 +-
/devel/newlib/samples/arm-unknown-linux-uclibc/uClibc-0.9.30.config | 253 0 253 0 ------
/devel/newlib/samples/arm-unknown-linux-uclibc/crosstool.config | 78 55 23 0 +-
/devel/newlib/samples/powerpc-unknown-linux-uclibc/uClibc-0.9.30.config | 248 0 248 0 ------
/devel/newlib/samples/powerpc-unknown-linux-uclibc/crosstool.config | 77 54 23 0 +-
/devel/newlib/samples/mips-unknown-elf/crosstool.config | 54 47 7 0 +
/devel/newlib/samples/powerpc-405-linux-gnu/crosstool.config | 104 68 36 0 +--
/devel/newlib/samples/armeb-unknown-linux-uclibcgnueabi/crosstool.config | 26 13 13 0
/devel/newlib/samples/arm-unknown-eabi/crosstool.config | 54 47 7 0 +
/devel/newlib/samples/mipsel-unknown-linux-gnu/crosstool.config | 104 68 36 0 +--
/devel/newlib/samples/powerpc64-unknown-linux-gnu/crosstool.config | 75 49 26 0 +-
/devel/newlib/samples/alphaev56-unknown-linux-gnu/crosstool.config | 94 63 31 0 +-
/devel/newlib/samples/powerpc-860-linux-gnu/crosstool.config | 102 67 35 0 +-
/devel/newlib/config/kernel/linux.in | 87 46 41 0 +-
/devel/newlib/config/cc/gcc.in | 35 30 5 0 +
/devel/newlib/config/debug/gdb.in | 2 1 1 0
94 files changed, 1851 insertions(+), 5813 deletions(-)
yann@922
     1
# This file contains the common configuration options
yann@922
     2
# that apply to both glibc and eglibc.
yann@922
     3
yann@1178
     4
if LIBC_glibc || LIBC_eglibc
yann@1178
     5
yann@922
     6
comment "glibc/eglibc common options"
yann@922
     7
yann@922
     8
config LIBC_GLIBC_EXTRA_CONFIG
yann@922
     9
    string
yann@922
    10
    prompt "extra config"
yann@922
    11
    default ""
yann@922
    12
    help
yann@922
    13
      Extra flags to pass onto ./configure when configuring.
yann@922
    14
yann@922
    15
      Eg.: --enable-static-nss
yann@922
    16
yann@1232
    17
config LIBC_GLIBC_CONFIGPARMS
yann@1232
    18
    string
yann@1232
    19
    prompt "Extra config params (READ HELP)"
yann@1232
    20
    default "" if ! ARCH_sh
yann@1232
    21
    default "no-z-defs=yes" if ARCH_sh
yann@1232
    22
    help
yann@1232
    23
      Some architectures need to set options in the file configparms.
yann@1232
    24
      This is the case for sh3/4, which really need to set configparms
yann@1232
    25
      to "no-z-defs=yes" as of gcc-3.4/glibc-2.3.2.
yann@1232
    26
      
yann@1232
    27
      Unless you are building a toolchain for sh3/4, you should leave that empty.
yann@1232
    28
      
yann@1232
    29
      Note: this is awkward, and doesn't work well if you need more than one
yann@1232
    30
            line in configparms
yann@1232
    31
yann@922
    32
config LIBC_GLIBC_EXTRA_CFLAGS
yann@922
    33
    string
yann@922
    34
    prompt "extra target CFLAGS"
yann@922
    35
    default ""
yann@922
    36
    help
yann@922
    37
      Extra target CFLAGS to use when building.
yann@922
    38
yann@922
    39
config LIBC_EXTRA_CC_ARGS
yann@922
    40
    string
yann@922
    41
    prompt "gcc extra flags"
yann@922
    42
    default ""
yann@922
    43
    help
yann@922
    44
      Extra flags to pass gcc when building.
yann@922
    45
yann@922
    46
      Seldom used, except for sparc64 which seems to need the flag -64
yann@922
    47
      to be passed onto gcc.
yann@922
    48
yann@922
    49
config LIBC_GLIBC_USE_PORTS
yann@922
    50
    bool
yann@922
    51
    prompt "Use the ports addon"
yann@922
    52
    default n
yann@922
    53
    help
yann@922
    54
      The ports addon contains some architecture ports that are not available
yann@922
    55
      in the official distribution.
yann@922
    56
yann@922
    57
      For example, this is the case for ARM with for 2.4 and above.
yann@922
    58
yann@922
    59
      Say n only if you're sure that your architecture is in the official
yann@922
    60
      distribution for your chosen version.
yann@922
    61
yann@922
    62
config LIBC_ADDONS_LIST
yann@922
    63
    string
yann@922
    64
    prompt "Extra addons"
yann@922
    65
    default ""
yann@922
    66
    help
yann@922
    67
      Extra addons to include. Space separated list.
yann@922
    68
yann@922
    69
      You need to specify neither linuxthreads nor nptl, as they are added
yann@922
    70
      automagically for you depending on the threading model you choosed
yann@922
    71
      earlier.
yann@922
    72
yann@922
    73
      Eg.: crypt        (for very old libces)
yann@922
    74
yann@922
    75
if KERNEL_linux
yann@922
    76
yann@922
    77
choice
yann@922
    78
    bool
yann@922
    79
    prompt "Minimum supported kernel version"
yann@922
    80
    default LIBC_GLIBC_KERNEL_VERSION_AS_HEADERS
yann@922
    81
yann@922
    82
config LIBC_GLIBC_KERNEL_VERSION_NONE
yann@922
    83
    bool
yann@922
    84
    prompt "Let ./configure decide"
yann@922
    85
    help
yann@922
    86
      Let ./configure decide what minimum kernel version glibc/eglibc
yann@922
    87
      will be able to run against.
yann@922
    88
      
yann@922
    89
      This will inclde legacy compatibility code for older kernels in
yann@922
    90
      the C library, thus ensuring that it will run on a large number
yann@922
    91
      of old kernels.
yann@922
    92
      
yann@922
    93
      The minimum kernel version supported will be dependent upon the
yann@922
    94
      target you build for. For example:
yann@922
    95
        alpha*-*-linux-gnu      Requires Linux 2.6.9 for NPTL
yann@922
    96
        sh[34]-*-linux-gnu      Requires Linux 2.6.11
yann@922
    97
        powerpc*                Requires Linux 2.4.19
yann@922
    98
        arm*-*-linux-*gnueabi   Requires Linux 2.6.16
yann@922
    99
yann@922
   100
config LIBC_GLIBC_KERNEL_VERSION_AS_HEADERS
yann@922
   101
    bool
yann@922
   102
    prompt "Same as kernel headers (default)"
yann@922
   103
    help
yann@922
   104
      Normaly, you'll want glibc/eglibc to run against the same kernel
yann@922
   105
      version as the one used for the headers.
yann@922
   106
      
yann@922
   107
      This is the default.
yann@922
   108
      
yann@922
   109
      If enabled, crosstool-ng will use the chosen version of kernel
yann@922
   110
      headers for the glibc minimum kernel version supported, which is
yann@922
   111
      what gets passed to "--enable-kernel=" when configuring glibc.
yann@922
   112
      
yann@922
   113
      Enabling this will ensure that no legacy compatibility code for
yann@922
   114
      older kernels is built into your C libraries, but it will
yann@922
   115
      be unable to run on kernel versions older than whichever kernel
yann@922
   116
      headers version you've built the toolchain for.
yann@922
   117
      
yann@922
   118
      If you know for sure that your toolchain will never need to build
yann@922
   119
      applications that will run under a kernel version older than your
yann@922
   120
      chosen kernel headers version (CT_KERNEL_VERSION), you can choose
yann@922
   121
      "y" here.
yann@922
   122
yann@922
   123
config LIBC_GLIBC_KERNEL_VERSION_CHOSEN
yann@922
   124
    bool
yann@922
   125
    prompt "Specific kernel version"
yann@922
   126
    help
yann@922
   127
      Specify the earliest Linux kernel version you want glibc to
yann@922
   128
      include support for.  This does not have to match the kernel
yann@922
   129
      headers version used for your toolchain.  This controls what is
yann@922
   130
      passed to the "--enable-kernel=" option to the glibc configure
yann@922
   131
      script.
yann@922
   132
yann@922
   133
      If you want to be able to statically link programs with your
yann@922
   134
      toolchain's C library, make sure this kernel version is lower than
yann@922
   135
      all kernels you wish to support to avoid "FATAL: kernel too old"
yann@922
   136
      errors.  The higher the version you specify, the less legacy code
yann@922
   137
      will be built into libc.
yann@922
   138
yann@922
   139
      Most people can leave this at the default value of "2.6.9".
yann@922
   140
yann@922
   141
if LIBC_GLIBC_KERNEL_VERSION_CHOSEN
yann@922
   142
yann@922
   143
config LIBC_GLIBC_MIN_KERNEL_VERSION
yann@922
   144
    string
yann@922
   145
    prompt "Minimum kernel version to support"
yann@922
   146
    default "2.6.9"
yann@922
   147
    help
yann@922
   148
      Enter here the lowest kernel version glibc/eglibc will be able to
yann@922
   149
      run against.
yann@922
   150
      
yann@922
   151
      The minimum kernel version supported will be dependent upon the
yann@922
   152
      target you build for. For example:
yann@922
   153
        alpha*-*-linux-gnu      Requires Linux 2.6.9 for NPTL
yann@922
   154
        sh[34]-*-linux-gnu      Requires Linux 2.6.11
yann@922
   155
        powerpc*                Requires Linux 2.4.19
yann@922
   156
        arm*-*-linux-*gnueabi   Requires Linux 2.6.16
yann@922
   157
      
yann@922
   158
      Note that no sanity check is performed by crosstool-NG to ensure
yann@922
   159
      that the value you enter here is appropriate for your target.
yann@922
   160
yann@922
   161
endif # LIBC_GLIBC_KERNEL_VERSION_CHOSEN
yann@922
   162
yann@922
   163
endchoice
yann@922
   164
yann@922
   165
config LIBC_GLIBC_MIN_KERNEL
yann@922
   166
    string
yann@922
   167
    default ""                            if LIBC_GLIBC_KERNEL_VERSION_NONE
yann@922
   168
    default KERNEL_VERSION                if LIBC_GLIBC_KERNEL_VERSION_AS_HEADERS
yann@1211
   169
    default LIBC_GLIBC_MIN_KERNEL_VERSION if LIBC_GLIBC_KERNEL_VERSION_CHOSEN
yann@922
   170
yann@922
   171
endif # KERNEL_linux
yann@1178
   172
yann@1178
   173
endif # LIBC_glibc || LIBC_eglibc