config/cc/gcc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Oct 03 23:11:27 2010 +0200 (2010-10-03)
changeset 2131 469830f72fe7
parent 2124 5dd0b83ae528
child 2149 98b7806295cc
permissions -rw-r--r--
complibs: introduce a two-stage select

Directly select-ing the required companion libraries means we can not
disable them. That's OK for now, as we systematically build them when
they are required.

But with distros coming up-to-speed, we will need to disable the build
later-on.

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