config/libc/glibc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed May 21 22:00:52 2008 +0000 (2008-05-21)
changeset 527 4ac12179ef23
child 710 021546adce69
permissions -rw-r--r--
Introduce target-specific LDFLAGS, the same way we have CFLAGS for the target.
It seems to be helping gcc somewhat into telling the correct endianness to ld that sticks with little endian even when the target is big (eg armeb-unknown-linux-uclibcgnueabi).
There's still work to do, especially finish the gcc part that is not in this commit.

/trunk/scripts/functions | 9 7 2 0 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
yann@448
     1
# glibc options
yann@448
     2
yann@448
     3
choice
yann@448
     4
    bool
yann@448
     5
    prompt "glibc version"
yann@448
     6
yann@448
     7
config LIBC_V_2_3_6
yann@448
     8
    bool
yann@448
     9
    prompt "2.3.6 (OBSOLETE)"
yann@448
    10
    depends on OBSOLETE
yann@448
    11
yann@448
    12
config LIBC_V_2_5
yann@448
    13
    bool
yann@448
    14
    prompt "2.5"
yann@448
    15
yann@448
    16
config LIBC_V_2_5_1
yann@448
    17
    bool
yann@448
    18
    prompt "2.5.1"
yann@448
    19
yann@448
    20
config LIBC_V_2_6
yann@448
    21
    bool
yann@448
    22
    prompt "2.6"
yann@448
    23
yann@448
    24
config LIBC_V_2_6_1
yann@448
    25
    bool
yann@448
    26
    prompt "2.6.1"
yann@448
    27
yann@448
    28
config LIBC_V_2_7
yann@448
    29
    bool
yann@448
    30
    prompt "2.7"
yann@448
    31
    depends on EXPERIMENTAL
yann@448
    32
yann@448
    33
# CT_INSERT_VERSION_ABOVE
yann@448
    34
# Don't remove above line!
yann@448
    35
endchoice
yann@448
    36
yann@448
    37
config LIBC_VERSION
yann@448
    38
    string
yann@448
    39
    default "2.3.6" if LIBC_V_2_3_6
yann@448
    40
    default "2.4" if LIBC_V_2_4
yann@448
    41
    default "2.5" if LIBC_V_2_5
yann@448
    42
    default "2.5.1" if LIBC_V_2_5_1
yann@448
    43
    default "2.6" if LIBC_V_2_6
yann@448
    44
    default "2.6.1" if LIBC_V_2_6_1
yann@448
    45
    default "2.7" if LIBC_V_2_7
yann@448
    46
# CT_INSERT_VERSION_STRING_ABOVE
yann@448
    47
# Don't remove above line!
yann@448
    48
yann@448
    49
config LIBC_GLIBC_EXTRA_CONFIG
yann@448
    50
    string
yann@448
    51
    prompt "glibc extra config"
yann@448
    52
    default ""
yann@448
    53
    help
yann@448
    54
      Extra flags to pass onto ./configure when configuring glibc.
yann@448
    55
yann@448
    56
      Eg.: --enable-static-nss
yann@448
    57
yann@448
    58
config LIBC_GLIBC_EXTRA_CFLAGS
yann@448
    59
    string
yann@448
    60
    prompt "glibc extra target CFLAGS"
yann@448
    61
    default ""
yann@448
    62
    help
yann@448
    63
      Extra target CFLAGS to use when building glibc.
yann@448
    64
yann@448
    65
config LIBC_EXTRA_CC_ARGS
yann@448
    66
    string
yann@448
    67
    prompt "gcc extra flags"
yann@448
    68
    default ""
yann@448
    69
    help
yann@448
    70
      Extra flags to pass gcc when building glibc.
yann@448
    71
yann@448
    72
      Seldom used, except for sparc64 which seems to need the flag -64
yann@448
    73
      to be passed onto gcc.
yann@448
    74
yann@448
    75
# Please note: This is not used for now (no sh support).
yann@448
    76
config LIBC_GLIBC_CONFIGPARMS
yann@448
    77
    string
yann@448
    78
    prompt "Extra config params (READ HELP)"
yann@448
    79
    default "" if ARCH != "sh3" && ARCH != "sh4"
yann@448
    80
    default "no-z-defs=yes" if ARCH = "sh3" || ARCH = "sh4"
yann@448
    81
    help
yann@448
    82
      Some architectures need to set options in the file configparms.
yann@448
    83
      This is the case for sh3/4, which really need to set configparms as of
yann@448
    84
      gcc-3.4/glibc-2.3.2.
yann@448
    85
yann@448
    86
      Unless you are building a toolchain for sh3/4, you should leave that empty.
yann@448
    87
yann@448
    88
      Note: this is awkward, doesn't work well if you need more than one
yann@448
    89
            line in configparms
yann@448
    90
yann@448
    91
config LIBC_GLIBC_USE_PORTS
yann@448
    92
    bool
yann@448
    93
    prompt "Use the ports addon"
yann@448
    94
    default n
yann@448
    95
    help
yann@448
    96
      The ports addon contains some architecture ports that are not available
yann@448
    97
      in the official glibc distribution.
yann@448
    98
      
yann@448
    99
      For example, this is the case for ARM with glibc >= 2.4
yann@448
   100
      
yann@448
   101
      Say n only if you're sure that your architecture is in the official
yann@448
   102
      glibc distribution for your chosen version.
yann@448
   103
yann@448
   104
config LIBC_ADDONS
yann@448
   105
    bool
yann@448
   106
    prompt "Pass extra addons list"
yann@448
   107
    default n
yann@448
   108
    help
yann@448
   109
      If you say Y here, you'll be able to give the list of addons you want to
yann@448
   110
      include in your C library.
yann@448
   111
yann@448
   112
config LIBC_ADDONS_LIST
yann@448
   113
    string
yann@448
   114
    prompt "Extra addons"
yann@448
   115
    default ""
yann@448
   116
    depends on LIBC_ADDONS
yann@448
   117
    help
yann@448
   118
      Extra addons to include in glibc. Space separated list.
yann@448
   119
yann@448
   120
      You need to specify neither linuxthreads nor nptl, as they are added
yann@448
   121
      automagically for you depending on the threading model you choosed
yann@448
   122
      earlier.
yann@448
   123
      
yann@448
   124
      Eg.: crypt        (for very old glibces)