config/cc/gcc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Jun 20 15:16:43 2008 +0000 (2008-06-20)
changeset 602 1968d150a34f
parent 551 4a32697b5440
child 687 b2b6b1d46aa1
permissions -rw-r--r--
GMP and MPFR are no longer a sub-component of gcc (config-wise).
Build and install GMP and MPFR for the target.
Use the target GMP and MPFR to build the native gdb.
Have separate extra_config for cross gdb, native gdb and gdbserver.
Check native GMP and MPFR in //.

/trunk/scripts/build/debug/300-gdb.sh | 27 19 8 0 ++++++++++++++++-------
/trunk/scripts/build/gmp.sh | 47 39 8 0 ++++++++++++++++++++++++++++++++-------
/trunk/scripts/build/mpfr.sh | 49 40 9 0 +++++++++++++++++++++++++++++++++--------
/trunk/steps.mk | 2 2 0 0 ++
/trunk/config/cc/gcc.in | 18 1 17 0 +--------------
/trunk/config/debug/gdb.in | 6 1 5 0 +----
/trunk/config/config.in | 1 1 0 0 +
/trunk/config/gmp_mpfr.in | 34 34 0 0 ++++++++++++++++++++++++++++
8 files changed, 137 insertions(+), 47 deletions(-)
     1 # Compiler options
     2 
     3 choice
     4     bool
     5     prompt "gcc version"
     6 
     7 config CC_V_2_95_3
     8     bool
     9     prompt "2.95.3 (OBSOLETE)"
    10     depends on OBSOLETE
    11 
    12 config CC_V_3_2_3
    13     bool
    14     prompt "3.2.3 (OBSOLETE)"
    15     depends on OBSOLETE
    16 
    17 config CC_V_3_3_6
    18     bool
    19     prompt "3.3.6 (OBSOLETE)"
    20     depends on OBSOLETE
    21 
    22 config CC_V_3_4_6
    23     bool
    24     prompt "3.4.6 (OBSOLETE)"
    25     depends on OBSOLETE
    26 
    27 config CC_V_4_0_0
    28     bool
    29     prompt "4.0.0 (OBSOLETE)"
    30     depends on OBSOLETE
    31 
    32 config CC_V_4_0_1
    33     bool
    34     prompt "4.0.1 (OBSOLETE)"
    35     depends on OBSOLETE
    36 
    37 config CC_V_4_0_2
    38     bool
    39     prompt "4.0.2 (OBSOLETE)"
    40     depends on OBSOLETE
    41 
    42 config CC_V_4_0_3
    43     bool
    44     prompt "4.0.3 (OBSOLETE)"
    45     depends on OBSOLETE
    46 
    47 config CC_V_4_0_4
    48     bool
    49     prompt "4.0.4"
    50 
    51 config CC_V_4_1_0
    52     bool
    53     prompt "4.1.0 (OBSOLETE)"
    54     depends on OBSOLETE
    55 
    56 config CC_V_4_1_1
    57     bool
    58     prompt "4.1.1 (OBSOLETE)"
    59     depends on OBSOLETE
    60 
    61 config CC_V_4_1_2
    62     bool
    63     prompt "4.1.2"
    64 
    65 config CC_V_4_2_0
    66     bool
    67     prompt "4.2.0"
    68 
    69 config CC_V_4_2_1
    70     bool
    71     prompt "4.2.1"
    72 
    73 config CC_V_4_2_2
    74     bool
    75     prompt "4.2.2"
    76 
    77 config CC_V_4_2_3
    78     bool
    79     prompt "4.2.3"
    80 
    81 config CC_V_4_3_0
    82     bool
    83     prompt "4.3.0 (EXPERIMENTAL)"
    84     depends on EXPERIMENTAL
    85     select CC_GCC_4_3_or_later
    86 
    87 config CC_V_4_3_1
    88     bool
    89     prompt "4.3.1 (EXPERIMENTAL)"
    90     depends on EXPERIMENTAL
    91     select CC_GCC_4_3_or_later
    92 
    93 # CT_INSERT_VERSION_ABOVE
    94 # Don't remove above line!
    95 endchoice
    96 
    97 config CC_VERSION
    98     string
    99     default "2.95.3" if CC_V_2_95_3
   100     default "3.2.3" if CC_V_3_2_3
   101     default "3.3.6" if CC_V_3_3_6
   102     default "3.4.6" if CC_V_3_4_6
   103     default "4.0.0" if CC_V_4_0_0
   104     default "4.0.1" if CC_V_4_0_1
   105     default "4.0.2" if CC_V_4_0_2
   106     default "4.0.3" if CC_V_4_0_3
   107     default "4.0.4" if CC_V_4_0_4
   108     default "4.1.0" if CC_V_4_1_0
   109     default "4.1.1" if CC_V_4_1_1
   110     default "4.1.2" if CC_V_4_1_2
   111     default "4.2.0" if CC_V_4_2_0
   112     default "4.2.1" if CC_V_4_2_1
   113     default "4.2.2" if CC_V_4_2_2
   114     default "4.2.3" if CC_V_4_2_3
   115     default "4.3.0" if CC_V_4_3_0
   116     default "4.3.1" if CC_V_4_3_1
   117 # CT_INSERT_VERSION_STRING_ABOVE
   118 # Don't remove above line!
   119 
   120 config CC_GCC_4_3_or_later
   121     bool
   122     default n
   123     select GMP_MPFR
   124 
   125 config CC_CXA_ATEXIT
   126     bool
   127     prompt "__cxa_atexit"
   128     default "y"
   129     help
   130       If you get the missing symbol "__cxa_atexit" when building C++ programs,
   131       you might want to try disabling this option.
   132 
   133 config CC_CORE_EXTRA_CONFIG
   134     string
   135     prompt "Core gcc extra config"
   136     default ""
   137     help
   138       Extra flags to pass onto ./configure when configuring the core gcc.
   139       
   140       The core gcc is a stripped down, C-only compiler needed to build
   141       the C library. Kinda bootstrap gcc, if you wish.
   142 
   143 config CC_EXTRA_CONFIG
   144     string
   145     prompt "gcc extra config"
   146     default ""
   147     help
   148       Extra flags to pass onto ./configure when configuring gcc.
   149 
   150 config CC_PKGVERSION
   151     string
   152     prompt "gcc ID string"
   153     depends on CC_GCC_4_3_or_later
   154     default "crosstool-NG-${CT_VERSION}"
   155     help
   156       Specify a string that identifies your package. You may wish to include
   157       a build number or build date. This version string will be included in
   158       the output of gcc --version.
   159 
   160       This is passed to the configure flag --with-pkgversion.
   161 
   162 config CC_BUGURL
   163     string
   164     prompt "gcc bug URL"
   165     depends on CC_GCC_4_3_or_later
   166     default ""
   167     help
   168       Specify the URL that users should visit if they wish to report a bug.