config/cc/gcc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Nov 16 17:49:15 2010 +0100 (2010-11-16)
changeset 2204 ea1c9143e1e3
parent 2131 469830f72fe7
child 2233 e65b82c6aa2c
permissions -rw-r--r--
scripts: call curl and wget in sequence

It can happen, in some circumpstances, than one can succeed where
the other would fail. Those cases involves convoluted enterprise
networks with proxies playing tricks.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 # Compiler options
     2 
     3 config CC_gcc
     4     select CC_SUPPORT_CXX
     5     select CC_SUPPORT_FORTRAN
     6     select CC_SUPPORT_JAVA
     7     select CC_SUPPORT_ADA
     8     select CC_SUPPORT_OBJC
     9     select CC_SUPPORT_OBJCXX
    10     help
    11       gcc is the full-blown GNU compiler. This is what most people will choose.
    12       
    13       gcc supports many languages, a powerful code parser, optimised binary
    14       output, and lots of other features.
    15 
    16 choice
    17     bool
    18     prompt "gcc version"
    19 # Don't remove next line
    20 # CT_INSERT_VERSION_BELOW
    21 
    22 config CC_V_4_5_1
    23     bool
    24     prompt "4.5.1 (EXPERIMENTAL)"
    25     depends on EXPERIMENTAL
    26     select CC_GCC_4_5_or_later
    27 
    28 config CC_V_4_5_0
    29     bool
    30     prompt "4.5.0 (EXPERIMENTAL)"
    31     depends on EXPERIMENTAL
    32     select CC_GCC_4_5_or_later
    33 
    34 config CC_V_4_4_5
    35     bool
    36     prompt "4.4.5"
    37     select CC_GCC_4_4_or_later
    38 
    39 config CC_V_4_4_4
    40     bool
    41     prompt "4.4.4"
    42     select CC_GCC_4_4_or_later
    43 
    44 config CC_V_4_4_3
    45     bool
    46     prompt "4.4.3"
    47     select CC_GCC_4_4_or_later
    48 
    49 config CC_V_4_4_2
    50     bool
    51     prompt "4.4.2"
    52     select CC_GCC_4_4_or_later
    53 
    54 config CC_V_4_4_1
    55     bool
    56     prompt "4.4.1"
    57     select CC_GCC_4_4_or_later
    58 
    59 config CC_V_4_4_0
    60     bool
    61     prompt "4.4.0"
    62     select CC_GCC_4_4_or_later
    63 
    64 config CC_V_4_3_5
    65     bool
    66     prompt "4.3.5"
    67     select CC_GCC_4_3_or_later
    68 
    69 config CC_V_4_3_4
    70     bool
    71     prompt "4.3.4"
    72     select CC_GCC_4_3_or_later
    73 
    74 config CC_V_4_3_3
    75     bool
    76     prompt "4.3.3"
    77     select CC_GCC_4_3_or_later
    78 
    79 config CC_V_4_3_2
    80     bool
    81     prompt "4.3.2"
    82     select CC_GCC_4_3_or_later
    83 
    84 config CC_V_4_3_1
    85     bool
    86     prompt "4.3.1"
    87     select CC_GCC_4_3_or_later
    88 
    89 config CC_V_4_2_4
    90     bool
    91     prompt "4.2.4"
    92     select CC_GCC_4_2_or_later
    93 
    94 config CC_V_4_2_3
    95     bool
    96     prompt "4.2.3 (OBSOLETE)"
    97     select CC_GCC_4_2_or_later
    98     depends on OBSOLETE
    99 
   100 config CC_V_4_2_2
   101     bool
   102     prompt "4.2.2"
   103     select CC_GCC_4_2_or_later
   104 
   105 config CC_V_4_2_1
   106     bool
   107     prompt "4.2.1 (OBSOLETE)"
   108     select CC_GCC_4_2_or_later
   109     depends on OBSOLETE
   110 
   111 config CC_V_4_2_0
   112     bool
   113     prompt "4.2.0 (OBSOLETE)"
   114     select CC_GCC_4_2_or_later
   115     depends on OBSOLETE
   116 
   117 config CC_V_4_1_2
   118     bool
   119     prompt "4.1.2 (OBSOLETE)"
   120     depends on OBSOLETE
   121 
   122 config CC_V_4_0_4
   123     bool
   124     prompt "4.0.4 (OBSOLETE)"
   125     depends on OBSOLETE
   126 
   127 config CC_V_3_4_6
   128     bool
   129     prompt "3.4.6 (OBSOLETE)"
   130     depends on OBSOLETE
   131 
   132 endchoice
   133 
   134 config CC_GCC_4_2_or_later
   135     bool
   136     default n
   137 
   138 config CC_GCC_4_3_or_later
   139     bool
   140     default n
   141     select CC_GCC_4_2_or_later
   142     select CC_GCC_USE_GMP_MPFR
   143 
   144 config CC_GCC_4_4_or_later
   145     bool
   146     default n
   147     select CC_GCC_4_3_or_later
   148     select CC_GCC_HAS_GRAPHITE
   149 
   150 config CC_GCC_4_5_or_later
   151     bool
   152     default n
   153     select CC_GCC_4_4_or_later
   154     select CC_GCC_USE_MPC
   155     select CC_GCC_HAS_LTO
   156 
   157 config CC_GCC_HAS_GRAPHITE
   158     bool
   159     default n
   160 
   161 config CC_GCC_HAS_LTO
   162     bool
   163     default n
   164 
   165 config CC_GCC_USE_GMP_MPFR
   166     bool
   167     default n
   168     select GMP_NEEDED
   169     select MPFR_NEEDED
   170 
   171 config CC_GCC_USE_PPL_CLOOG
   172     bool
   173     default n
   174     select PPL_NEEDED
   175     select CLOOG_NEEDED
   176 
   177 config CC_GCC_USE_MPC
   178     bool
   179     default n
   180     select MPC_NEEDED
   181 
   182 config CC_GCC_USE_LIBELF
   183     bool
   184     default n
   185     select LIBELF_NEEDED
   186 
   187 config CC_VERSION
   188     string
   189 # Don't remove next line
   190 # CT_INSERT_VERSION_STRING_BELOW
   191     default "4.5.1" if CC_V_4_5_1
   192     default "4.5.0" if CC_V_4_5_0
   193     default "4.4.5" if CC_V_4_4_5
   194     default "4.4.4" if CC_V_4_4_4
   195     default "4.4.3" if CC_V_4_4_3
   196     default "4.4.2" if CC_V_4_4_2
   197     default "4.4.1" if CC_V_4_4_1
   198     default "4.4.0" if CC_V_4_4_0
   199     default "4.3.5" if CC_V_4_3_5
   200     default "4.3.4" if CC_V_4_3_4
   201     default "4.3.3" if CC_V_4_3_3
   202     default "4.3.2" if CC_V_4_3_2
   203     default "4.3.1" if CC_V_4_3_1
   204     default "4.3.0" if CC_V_4_3_0
   205     default "4.2.4" if CC_V_4_2_4
   206     default "4.2.3" if CC_V_4_2_3
   207     default "4.2.2" if CC_V_4_2_2
   208     default "4.2.1" if CC_V_4_2_1
   209     default "4.2.0" if CC_V_4_2_0
   210     default "4.1.2" if CC_V_4_1_2
   211     default "4.0.4" if CC_V_4_0_4
   212     default "3.4.6" if CC_V_3_4_6
   213 
   214 config CC_LANG_JAVA_USE_ECJ
   215     bool
   216     default y
   217     depends on CC_LANG_JAVA
   218     depends on CC_GCC_4_3_or_later
   219 
   220 config CC_PKGVERSION
   221     string
   222     prompt "gcc ID string"
   223     depends on CC_GCC_4_3_or_later
   224     default "crosstool-NG-${CT_VERSION}"
   225     help
   226       Specify a string that identifies your package. You may wish to include
   227       a build number or build date. This version string will be included in
   228       the output of gcc --version.
   229 
   230       This is passed to the configure flag --with-pkgversion.
   231 
   232 config CC_BUGURL
   233     string
   234     prompt "gcc bug URL"
   235     depends on CC_GCC_4_3_or_later
   236     default ""
   237     help
   238       Specify the URL that users should visit if they wish to report a bug.
   239 
   240 config CC_ENABLE_CXX_FLAGS
   241     string
   242     prompt "Flags to pass to --enable-cxx-flags"
   243     default ""
   244     help
   245       Enter here the value of the gcc's ./configure option --enable-cxx-flags.
   246       Leave empty if you don't know better.
   247       
   248       Note: just pass in the option _value_, that is only the part that goes
   249       after the '=' sign.
   250 
   251 config CC_CORE_EXTRA_CONFIG
   252     string
   253     prompt "Core gcc extra config"
   254     default ""
   255     help
   256       Extra flags to pass onto ./configure when configuring the core gcc.
   257       
   258       The core gcc is a stripped down, C-only compiler needed to build
   259       the C library. Kinda bootstrap gcc, if you wish.
   260 
   261 config CC_EXTRA_CONFIG
   262     string
   263     prompt "gcc extra config"
   264     default ""
   265     depends on ! BARE_METAL
   266     help
   267       Extra flags to pass onto ./configure when configuring gcc.