config/cc/gcc.in.2
author "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
Tue May 31 20:12:35 2011 +0200 (2011-05-31)
changeset 2487 481cd34691f0
parent 2486 328816f6e606
child 2500 ba1e71fa72a9
permissions -rw-r--r--
gcc: promote PKGVERSION and BUGURL options to toolchain level

This patch promotes the PKGVERSION and BUGURL options to toolchain level so that
all toolchain components supporting them can benefit from them.

These options are passed to configure through --with-pkgversion and
--with-bugurl.

They are supported by binutils 2.18+, gcc 4.3+, eglibc 2.9+ and gdb 7.0+.

Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
yann@2415
     1
# gcc configuration options
yann@2144
     2
yann@2415
     3
config CC_ENABLE_CXX_FLAGS
yann@2415
     4
    string
yann@2415
     5
    prompt "Flags to pass to --enable-cxx-flags"
yann@2415
     6
    default ""
yann@2415
     7
    help
yann@2415
     8
      Enter here the value of the gcc's ./configure option --enable-cxx-flags.
yann@2415
     9
      Leave empty if you don't know better.
yann@2415
    10
      
yann@2415
    11
      Note: just pass in the option _value_, that is only the part that goes
yann@2415
    12
      after the '=' sign.
yann@2415
    13
yann@2467
    14
config CC_CORE_EXTRA_CONFIG_ARRAY
yann@2415
    15
    string
yann@2415
    16
    prompt "Core gcc extra config"
yann@2415
    17
    default ""
yann@2415
    18
    help
yann@2415
    19
      Extra flags to pass onto ./configure when configuring the core gcc.
yann@2415
    20
      
yann@2415
    21
      The core gcc is a stripped down, C-only compiler needed to build
yann@2415
    22
      the C library. Kinda bootstrap gcc, if you wish.
yann@2469
    23
      
yann@2469
    24
      You can enter multiple arguments here, and arguments can contain spaces
yann@2469
    25
      if they are properly quoted (or escaped, but prefer quotes). Eg.:
yann@2469
    26
          --with-foo="1st arg with 4 spaces" --with-bar=2nd-arg-without-space
yann@2415
    27
yann@2467
    28
config CC_EXTRA_CONFIG_ARRAY
yann@2415
    29
    string
yann@2415
    30
    prompt "gcc extra config"
yann@2415
    31
    default ""
yann@2415
    32
    depends on ! BARE_METAL
yann@2415
    33
    help
yann@2415
    34
      Extra flags to pass onto ./configure when configuring gcc.
yann@2469
    35
      
yann@2469
    36
      You can enter multiple arguments here, and arguments can contain spaces
yann@2469
    37
      if they are properly quoted (or escaped, but prefer quotes). Eg.:
yann@2469
    38
          --with-foo="1st arg with 4 spaces" --with-bar=2nd-arg-without-space
yann@2415
    39
yann@2415
    40
config STATIC_TOOLCHAIN
yann@2415
    41
    select CC_STATIC_LIBSTDCXX if CC_GCC_4_4_or_later
yann@2415
    42
yann@2415
    43
config CC_STATIC_LIBSTDCXX
yann@2041
    44
    bool
yann@2415
    45
    prompt "Link libstdc++ statically into the gcc binary"
yann@2041
    46
    default y
yann@2415
    47
    depends on CC_GCC_4_4_or_later
yann@2041
    48
    help
yann@2415
    49
      Newer gcc versions use the PPL library which is C++ code.  Statically
yann@2415
    50
      linking libstdc++ increases the likeliness that the gcc binary will
yann@2415
    51
      run on machines other than the one which it was built on, without
yann@2415
    52
      having to worry about distributing the matching version of libstdc++
yann@2415
    53
      along with it.
yann@2415
    54
yann@2415
    55
#-----------------------------------------------------------------------------
yann@2415
    56
# Optimisation features
yann@2415
    57
yann@2415
    58
comment "Optimisation features"
yann@2041
    59
yann@2122
    60
config CC_GCC_USE_GRAPHITE
yann@2122
    61
    bool
yann@2122
    62
    prompt "Enable GRAPHITE loop optimisations"
yann@2122
    63
    default y
yann@2122
    64
    depends on CC_GCC_HAS_GRAPHITE
yann@2122
    65
    select CC_GCC_USE_PPL_CLOOG
yann@2122
    66
    help
yann@2122
    67
      Enable the GRAPHITE loop optimsations.
yann@2122
    68
      
yann@2122
    69
      This requires the PPL and CLooG companion libraries, and
yann@2122
    70
      those will be automatically build for you.
yann@2122
    71
      
yann@2122
    72
      On some systems (eg. Cygwin), PPL and/or CLooG may not
yann@2122
    73
      build properly (yet), so you'll have to say 'N' here.
yann@2122
    74
yann@2287
    75
# The way LTO works is a bit twisted.
yann@2287
    76
# See: http://gcc.gnu.org/wiki/LinkTimeOptimization#Requirements
yann@2287
    77
# Basically:
yann@2287
    78
#   - if binutils has plugins: LTO is handled by ld/gold by loading
yann@2287
    79
#     the plugin when linking
yann@2287
    80
#   - if binutils does not have plugins: LTO is handled by collect2
yann@2287
    81
# In any case, LTO support does not depend on plugins, but takes
yann@2287
    82
# advantage of it
yann@2363
    83
# Also, only the 4.5 series needs libelf for LTO; 4.6 has dropped
yann@2363
    84
# the dependency.
yann@2122
    85
config CC_GCC_USE_LTO
yann@2122
    86
    bool
yann@2122
    87
    prompt "Enable LTO"
yann@2122
    88
    default y
yann@2122
    89
    depends on CC_GCC_HAS_LTO
yann@2362
    90
    select CC_GCC_USE_LIBELF if CC_GCC_4_5
yann@2122
    91
    help
yann@2122
    92
      Enable the Link Time Optimisations.
yann@2122
    93
      
yann@2122
    94
      This will require the libelf companion library, and it
yann@2122
    95
      wil be build automatically for you.
yann@2122
    96
yann@2415
    97
#-----------------------------------------------------------------------------
yann@2415
    98
comment "Settings for libraries running on target"
bryanhundven@2211
    99
yann@2415
   100
config CC_GCC_ENABLE_TARGET_OPTSPACE
js@2045
   101
    bool
yann@2415
   102
    prompt "Optimize gcc libs for size"
js@2045
   103
    default y
js@2045
   104
    help
yann@2415
   105
      Pass --enable-target-optspace to crossgcc's configure.
yann@2415
   106
      
yann@2415
   107
      This will compile crossgcc's libs with -Os.
js@2045
   108
yann@2144
   109
config CC_GCC_LIBMUDFLAP
yann@2144
   110
    bool
yann@2144
   111
    prompt "Compile libmudflap"
yann@2144
   112
    help
yann@2144
   113
      libmudflap is a pointer-use checking tool, which can detect
yann@2144
   114
      various mis-usages of pointers in C and (to some extents) C++.
yann@2144
   115
      
yann@2144
   116
      You should say 'N' here, as libmduflap generates instrumented
yann@2144
   117
      code (thus it is a bit bigger and a bit slower) and requires
yann@2144
   118
      re-compilation and re-link, while it exists better run-time
yann@2144
   119
      alternatives (eg. DUMA, dmalloc...) that need neither re-
yann@2144
   120
      compilation nor re-link.
yann@2144
   121
yann@2145
   122
config CC_GCC_LIBGOMP
yann@2145
   123
    bool
yann@2145
   124
    prompt "Compile libgomp"
yann@2145
   125
    help
yann@2145
   126
      libgomp is "the GNU implementation of the OpenMP Application Programming
yann@2145
   127
      Interface (API) for multi-platform shared-memory parallel programming in
yann@2145
   128
      C/C++ and Fortran". See:
yann@2145
   129
        http://gcc.gnu.org/onlinedocs/libgomp/
yann@2145
   130
      
yann@2145
   131
      The default is 'N'. Say 'Y' if you need it, and report success/failure.
yann@2145
   132
yann@2146
   133
config CC_GCC_LIBSSP
yann@2146
   134
    bool
yann@2146
   135
    prompt "Compile libssp"
yann@2146
   136
    help
yann@2146
   137
      libssp is the run-time Stack-Smashing Protection library.
yann@2146
   138
      
yann@2146
   139
      The default is 'N'. Say 'Y' if you need it, and report success/failure.
yann@2146
   140
yann@2144
   141
#-----------------------------------------------------------------------------
yann@2144
   142
yann@2041
   143
comment "Misc. obscure options."
yann@2041
   144
yann@2041
   145
config CC_CXA_ATEXIT
yann@2041
   146
    bool
yann@2041
   147
    prompt "Use __cxa_atexit"
yann@2041
   148
    default y
yann@2041
   149
    depends on ! BARE_METAL
yann@2041
   150
    help
yann@2041
   151
      If you get the missing symbol "__cxa_atexit" when building C++ programs,
yann@2041
   152
      you might want to try disabling this option.
yann@2041
   153
yann@2041
   154
config CC_GCC_DISABLE_PCH
yann@2041
   155
    bool
yann@2041
   156
    prompt "Do not build PCH"
yann@2041
   157
    help
yann@2041
   158
      Say 'y' here to not use Pre-Compiled Headers in the resulting toolchain.
yann@2041
   159
      at the expense of speed when compiling C++ code.
yann@2041
   160
      
yann@2041
   161
      For some configurations (most notably canadian?), PCH are broken, and
yann@2041
   162
      need to be disabled. Please see:
yann@2041
   163
        http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40974
yann@2041
   164
yann@2042
   165
config CC_GCC_SJLJ_EXCEPTIONS
yann@2042
   166
    tristate
yann@2041
   167
    prompt "Use sjlj for exceptions"
yann@2054
   168
    depends on ! BARE_METAL
yann@2042
   169
    default m
yann@2041
   170
    help
yann@2042
   171
      'sjlj' is short for setjmp/longjmp.
yann@2041
   172
      
yann@2042
   173
      On some architectures, stack unwinding during exception handling
yann@2042
   174
      works perfectly well without using sjlj, while on some others,
yann@2042
   175
      use of sjlj is required for proper stack unwinding.
yann@2041
   176
      
yann@2042
   177
       Option  | sjlj use           | Associated ./configure switch
yann@2042
   178
      ---------+--------------------+--------------------------------
yann@2042
   179
         Y     | forcibly used      | --enable-sjlj-exceptions
yann@2042
   180
         M     | auto               | (none, ./configure decides)
yann@2042
   181
         N     | forcibly not used  | --disable-sjlj-exceptions
yann@2041
   182
      
yann@2042
   183
      It should be safe to say 'M' or 'N'.
yann@2042
   184
      
yann@2042
   185
      It can happen that ./configure is wrong in some cases. Known
yann@2042
   186
      case is for ARM big endian, where you should say 'N'.
yann@2043
   187
yann@2143
   188
config CC_GCC_LDBL_128
yann@2143
   189
    tristate
yann@2143
   190
    prompt "Enable 128-bit long doubles"
yann@2143
   191
    default m
yann@2143
   192
    depends on CC_GCC_4_2_or_later
yann@2143
   193
    help
yann@2143
   194
      Saying 'Y' will force gcc to use 128-bit wide long doubles
yann@2143
   195
      Saying 'N' will force gcc to use 64-bit wide long doubles
yann@2143
   196
      Saying 'M' will let gcc choose (default is 128-bit for
yann@2143
   197
                 glibc >= 2.4, 64-bit otherwise)
yann@2143
   198
      
yann@2143
   199
      If in doubt, keep the default, ie. 'M'.