config/cc/gcc.in
author Bryan Hundven <bryanhundven@gmail.com>
Thu Jun 30 18:14:01 2011 +0200 (2011-06-30)
changeset 2520 e3523df95b6b
parent 2510 48f955c87081
child 2521 9cfca603f892
permissions -rw-r--r--
libc/eglibc: Add option that allows for getting svn over http://

Instead of getting eglibc over standard svn://svn.eglibc.org
Add an option that allows the user to get source from
http://www.eglibc.org/svn

This is useful if you are behind a firewall or proxy.
If you are behind a proxy, don't forget to configure
${HOME}/.subversion/servers

In the [global] section setup your proxy configuration.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
[yann.morin.1998@anciens.enib.fr: removed useless 'default n']
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 # Compiler options
     2 #
     3 ## select CC_SUPPORT_CXX
     4 ## select CC_SUPPORT_FORTRAN
     5 ## select CC_SUPPORT_JAVA
     6 ## select CC_SUPPORT_ADA
     7 ## select CC_SUPPORT_OBJC
     8 ## select CC_SUPPORT_OBJCXX
     9 ##
    10 ## help gcc is the full-blown GNU compiler. This is what most people will choose.
    11 ## help
    12 ## help gcc supports many languages, a powerful code parser, optimised binary
    13 ## help output, and lots of other features.
    14 
    15 config CC_GCC_SHOW_LINARO
    16     bool
    17     prompt "Show Linaro versions (EXPERIMENTAL)"
    18     depends on EXPERIMENTAL
    19     help
    20       Linaro is maintaining some advanced/more stable/experimental versions
    21       of gcc, especially for the ARM architecture.
    22       
    23       Those versions have not been blessed by the gcc comunity (nor have they
    24       been cursed either!), but they look to be pretty much stable, and even
    25       more stable than the upstream versions. YMMV...
    26       
    27       If you do not know what this Linaro stuff is, then simply say 'n' here,
    28       and rest in peace. OTOH, if you know what you are doing, you will be
    29       able to use and enjoy :-) the Linaro versions by saying 'y' here.
    30       
    31       Linaro: http://www.linaro.org/
    32 
    33 choice
    34     bool
    35     prompt "gcc version"
    36 # Don't remove next line
    37 # CT_INSERT_VERSION_BELOW
    38 
    39 config CC_V_linaro_4_6_2011_06_0
    40     bool
    41     prompt "linaro-4.6-2011.06-0 (EXPERIMENTAL)"
    42     depends on CC_GCC_SHOW_LINARO
    43     select CC_GCC_4_6
    44 
    45 config CC_V_4_6_1
    46     bool
    47     prompt "4.6.1 (EXPERIMENTAL)"
    48     depends on EXPERIMENTAL
    49     select CC_GCC_4_6
    50 
    51 config CC_V_4_6_0
    52     bool
    53     prompt "4.6.0 (EXPERIMENTAL)"
    54     depends on EXPERIMENTAL
    55     select CC_GCC_4_6
    56 
    57 config CC_V_linaro_4_5_2011_06_0
    58     bool
    59     prompt "linaro-4.5-2011.06-0 (EXPERIMENTAL)"
    60     depends on CC_GCC_SHOW_LINARO
    61     select CC_GCC_4_5
    62 
    63 config CC_V_4_5_3
    64     bool
    65     prompt "4.5.3 (EXPERIMENTAL)"
    66     depends on EXPERIMENTAL
    67     select CC_GCC_4_5
    68 
    69 config CC_V_4_5_2
    70     bool
    71     prompt "4.5.2 (EXPERIMENTAL)"
    72     depends on EXPERIMENTAL
    73     select CC_GCC_4_5
    74 
    75 config CC_V_4_5_1
    76     bool
    77     prompt "4.5.1 (EXPERIMENTAL)"
    78     depends on EXPERIMENTAL
    79     select CC_GCC_4_5
    80 
    81 config CC_V_4_5_0
    82     bool
    83     prompt "4.5.0 (EXPERIMENTAL)"
    84     depends on EXPERIMENTAL
    85     select CC_GCC_4_5
    86 
    87 
    88 config CC_V_linaro_4_4_2011_02_0
    89     bool
    90     prompt "linaro-4.4-2011.02-0 (EXPERIMENTAL)"
    91     depends on CC_GCC_SHOW_LINARO
    92     select CC_GCC_4_4
    93 
    94 config CC_V_4_4_6
    95     bool
    96     prompt "4.4.6"
    97     select CC_GCC_4_4
    98 
    99 config CC_V_4_4_5
   100     bool
   101     prompt "4.4.5"
   102     select CC_GCC_4_4
   103 
   104 config CC_V_4_4_4
   105     bool
   106     prompt "4.4.4"
   107     select CC_GCC_4_4
   108 
   109 config CC_V_4_4_3
   110     bool
   111     prompt "4.4.3"
   112     select CC_GCC_4_4
   113 
   114 config CC_V_4_4_2
   115     bool
   116     prompt "4.4.2"
   117     select CC_GCC_4_4
   118 
   119 config CC_V_4_4_1
   120     bool
   121     prompt "4.4.1"
   122     select CC_GCC_4_4
   123 
   124 config CC_V_4_4_0
   125     bool
   126     prompt "4.4.0"
   127     select CC_GCC_4_4
   128 
   129 config CC_V_4_3_6
   130     bool
   131     prompt "4.3.6"
   132     select CC_GCC_4_3
   133 
   134 config CC_V_4_3_5
   135     bool
   136     prompt "4.3.5"
   137     select CC_GCC_4_3
   138 
   139 config CC_V_4_3_4
   140     bool
   141     prompt "4.3.4"
   142     select CC_GCC_4_3
   143 
   144 config CC_V_4_3_3
   145     bool
   146     prompt "4.3.3"
   147     select CC_GCC_4_3
   148 
   149 config CC_V_4_3_2
   150     bool
   151     prompt "4.3.2"
   152     select CC_GCC_4_3
   153 
   154 config CC_V_4_3_1
   155     bool
   156     prompt "4.3.1"
   157     select CC_GCC_4_3
   158 
   159 config CC_V_4_2_4
   160     bool
   161     prompt "4.2.4"
   162     select CC_GCC_4_2
   163 
   164 config CC_V_4_2_3
   165     bool
   166     prompt "4.2.3 (OBSOLETE)"
   167     select CC_GCC_4_2
   168     depends on OBSOLETE
   169 
   170 config CC_V_4_2_2
   171     bool
   172     prompt "4.2.2"
   173     select CC_GCC_4_2
   174 
   175 config CC_V_4_2_1
   176     bool
   177     prompt "4.2.1 (OBSOLETE)"
   178     select CC_GCC_4_2
   179     depends on OBSOLETE
   180 
   181 config CC_V_4_2_0
   182     bool
   183     prompt "4.2.0 (OBSOLETE)"
   184     select CC_GCC_4_2
   185     depends on OBSOLETE
   186 
   187 config CC_V_4_1_2
   188     bool
   189     prompt "4.1.2 (OBSOLETE)"
   190     depends on OBSOLETE
   191 
   192 config CC_V_4_0_4
   193     bool
   194     prompt "4.0.4 (OBSOLETE)"
   195     depends on OBSOLETE
   196 
   197 config CC_V_3_4_6
   198     bool
   199     prompt "3.4.6 (OBSOLETE)"
   200     depends on OBSOLETE
   201 
   202 endchoice
   203 
   204 config CC_GCC_4_2
   205     bool
   206     select CC_GCC_4_2_or_later
   207 
   208 config CC_GCC_4_2_or_later
   209     bool
   210 
   211 config CC_GCC_4_3
   212     bool
   213     select CC_GCC_4_3_or_later
   214     select CC_GCC_USE_GMP_MPFR
   215     select CC_GCC_HAS_PKGVERSION_BUGURL
   216 
   217 config CC_GCC_4_3_or_later
   218     bool
   219     select CC_GCC_4_2_or_later
   220 
   221 config CC_GCC_4_4
   222     bool
   223     select CC_GCC_4_4_or_later
   224     select CC_GCC_USE_GMP_MPFR
   225     select CC_GCC_HAS_GRAPHITE
   226     select CC_GCC_HAS_PKGVERSION_BUGURL
   227 
   228 config CC_GCC_4_4_or_later
   229     bool
   230     select CC_GCC_4_3_or_later
   231 
   232 config CC_GCC_4_5
   233     bool
   234     select CC_GCC_4_5_or_later
   235     select CC_GCC_USE_GMP_MPFR
   236     select CC_GCC_USE_MPC
   237     select CC_GCC_HAS_GRAPHITE
   238     select CC_GCC_HAS_LTO
   239     select CC_GCC_HAS_PKGVERSION_BUGURL
   240 
   241 config CC_GCC_4_5_or_later
   242     bool
   243     select CC_GCC_4_4_or_later
   244 
   245 config CC_GCC_4_6
   246     bool
   247     select CC_GCC_4_6_or_later
   248     select CC_GCC_USE_GMP_MPFR
   249     select CC_GCC_USE_MPC
   250     select CC_GCC_HAS_GRAPHITE
   251     select CC_GCC_HAS_LTO
   252     select CC_GCC_HAS_PKGVERSION_BUGURL
   253 
   254 config CC_GCC_4_6_or_later
   255     bool
   256     select CC_GCC_4_5_or_later
   257 
   258 config CC_GCC_HAS_GRAPHITE
   259     bool
   260 
   261 # The way LTO works is a bit twisted.
   262 # See: http://gcc.gnu.org/wiki/LinkTimeOptimization#Requirements
   263 # Basically:
   264 #   - if binutils has plugins: LTO is handled by ld/gold by loading
   265 #     the plugin when linking
   266 #   - if binutils does not have plugins: LTO is handled by collect2
   267 # In any case, LTO support does not depend on plugins, but takes
   268 # advantage of it
   269 config CC_GCC_HAS_LTO
   270     bool
   271 
   272 config CC_GCC_HAS_PKGVERSION_BUGURL
   273     bool
   274 
   275 # Only enable gcc's support for plugins if binutils has it as well
   276 # They are usefull only when doing LTO, but it does no harm enabling
   277 # them even without LTO.
   278 config CC_GCC_ENABLE_PLUGINS
   279     bool
   280     depends on BINUTILS_PLUGINS
   281     depends on ! STATIC_TOOLCHAIN
   282     default y
   283 
   284 # If binutils installs gold, enable support for gold in gcc
   285 config CC_GCC_GOLD
   286     bool
   287     depends on BINUTILS_GOLD_INSTALLED
   288     default y
   289 
   290 config CC_GCC_USE_GMP_MPFR
   291     bool
   292     select GMP_NEEDED
   293     select MPFR_NEEDED
   294 
   295 config CC_GCC_USE_PPL_CLOOG
   296     bool
   297     select PPL_NEEDED
   298     select CLOOG_NEEDED
   299 
   300 config CC_GCC_USE_MPC
   301     bool
   302     select MPC_NEEDED
   303 
   304 config CC_GCC_USE_LIBELF
   305     bool
   306     select LIBELF_NEEDED
   307 
   308 config CC_VERSION
   309     string
   310 # Don't remove next line
   311 # CT_INSERT_VERSION_STRING_BELOW
   312     default "linaro-4.6-2011.06-0" if CC_V_linaro_4_6_2011_06_0
   313     default "4.6.1" if CC_V_4_6_1
   314     default "4.6.0" if CC_V_4_6_0
   315     default "linaro-4.5-2011.06-0" if CC_V_linaro_4_5_2011_06_0
   316     default "4.5.3" if CC_V_4_5_3
   317     default "4.5.2" if CC_V_4_5_2
   318     default "4.5.1" if CC_V_4_5_1
   319     default "4.5.0" if CC_V_4_5_0
   320     default "linaro-4.4-2011.02-0" if CC_V_linaro_4_4_2011_02_0
   321     default "4.4.6" if CC_V_4_4_6
   322     default "4.4.5" if CC_V_4_4_5
   323     default "4.4.4" if CC_V_4_4_4
   324     default "4.4.3" if CC_V_4_4_3
   325     default "4.4.2" if CC_V_4_4_2
   326     default "4.4.1" if CC_V_4_4_1
   327     default "4.4.0" if CC_V_4_4_0
   328     default "4.3.6" if CC_V_4_3_6
   329     default "4.3.5" if CC_V_4_3_5
   330     default "4.3.4" if CC_V_4_3_4
   331     default "4.3.3" if CC_V_4_3_3
   332     default "4.3.2" if CC_V_4_3_2
   333     default "4.3.1" if CC_V_4_3_1
   334     default "4.3.0" if CC_V_4_3_0
   335     default "4.2.4" if CC_V_4_2_4
   336     default "4.2.3" if CC_V_4_2_3
   337     default "4.2.2" if CC_V_4_2_2
   338     default "4.2.1" if CC_V_4_2_1
   339     default "4.2.0" if CC_V_4_2_0
   340     default "4.1.2" if CC_V_4_1_2
   341     default "4.0.4" if CC_V_4_0_4
   342     default "3.4.6" if CC_V_3_4_6
   343 
   344 config CC_LANG_JAVA_USE_ECJ
   345     bool
   346     default y
   347     depends on CC_LANG_JAVA
   348     depends on CC_GCC_4_3_or_later