config/cc/gcc.in.2
changeset 2415 ae9899116f19
parent 2363 bc2714299363
child 2467 200836977ce6
     1.1 --- a/config/cc/gcc.in.2	Sat Mar 19 16:01:40 2011 +0100
     1.2 +++ b/config/cc/gcc.in.2	Wed Apr 27 22:41:17 2011 +0200
     1.3 @@ -1,13 +1,73 @@
     1.4 -# Misc library-related options
     1.5 +# gcc configuration options
     1.6  
     1.7 -config CC_GCC_ENABLE_TARGET_OPTSPACE
     1.8 +config CC_PKGVERSION
     1.9 +    string
    1.10 +    prompt "gcc ID string"
    1.11 +    depends on CC_GCC_4_3_or_later
    1.12 +    default "crosstool-NG-${CT_VERSION}"
    1.13 +    help
    1.14 +      Specify a string that identifies your package. You may wish to include
    1.15 +      a build number or build date. This version string will be included in
    1.16 +      the output of gcc --version.
    1.17 +
    1.18 +      This is passed to the configure flag --with-pkgversion.
    1.19 +
    1.20 +config CC_BUGURL
    1.21 +    string
    1.22 +    prompt "gcc bug URL"
    1.23 +    depends on CC_GCC_4_3_or_later
    1.24 +    default ""
    1.25 +    help
    1.26 +      Specify the URL that users should visit if they wish to report a bug.
    1.27 +
    1.28 +config CC_ENABLE_CXX_FLAGS
    1.29 +    string
    1.30 +    prompt "Flags to pass to --enable-cxx-flags"
    1.31 +    default ""
    1.32 +    help
    1.33 +      Enter here the value of the gcc's ./configure option --enable-cxx-flags.
    1.34 +      Leave empty if you don't know better.
    1.35 +      
    1.36 +      Note: just pass in the option _value_, that is only the part that goes
    1.37 +      after the '=' sign.
    1.38 +
    1.39 +config CC_CORE_EXTRA_CONFIG
    1.40 +    string
    1.41 +    prompt "Core gcc extra config"
    1.42 +    default ""
    1.43 +    help
    1.44 +      Extra flags to pass onto ./configure when configuring the core gcc.
    1.45 +      
    1.46 +      The core gcc is a stripped down, C-only compiler needed to build
    1.47 +      the C library. Kinda bootstrap gcc, if you wish.
    1.48 +
    1.49 +config CC_EXTRA_CONFIG
    1.50 +    string
    1.51 +    prompt "gcc extra config"
    1.52 +    default ""
    1.53 +    depends on ! BARE_METAL
    1.54 +    help
    1.55 +      Extra flags to pass onto ./configure when configuring gcc.
    1.56 +
    1.57 +config STATIC_TOOLCHAIN
    1.58 +    select CC_STATIC_LIBSTDCXX if CC_GCC_4_4_or_later
    1.59 +
    1.60 +config CC_STATIC_LIBSTDCXX
    1.61      bool
    1.62 -    prompt "Optimize gcc libs for size"
    1.63 +    prompt "Link libstdc++ statically into the gcc binary"
    1.64      default y
    1.65 +    depends on CC_GCC_4_4_or_later
    1.66      help
    1.67 -      Pass --enable-target-optspace to crossgcc's configure.
    1.68 -      
    1.69 -      This will compile crossgcc's libs with -Os.
    1.70 +      Newer gcc versions use the PPL library which is C++ code.  Statically
    1.71 +      linking libstdc++ increases the likeliness that the gcc binary will
    1.72 +      run on machines other than the one which it was built on, without
    1.73 +      having to worry about distributing the matching version of libstdc++
    1.74 +      along with it.
    1.75 +
    1.76 +#-----------------------------------------------------------------------------
    1.77 +# Optimisation features
    1.78 +
    1.79 +comment "Optimisation features"
    1.80  
    1.81  config CC_GCC_USE_GRAPHITE
    1.82      bool
    1.83 @@ -46,20 +106,17 @@
    1.84        This will require the libelf companion library, and it
    1.85        wil be build automatically for you.
    1.86  
    1.87 -config STATIC_TOOLCHAIN
    1.88 -    select CC_STATIC_LIBSTDCXX if CC_GCC_4_4_or_later
    1.89 +#-----------------------------------------------------------------------------
    1.90 +comment "Settings for libraries running on target"
    1.91  
    1.92 -config CC_STATIC_LIBSTDCXX
    1.93 +config CC_GCC_ENABLE_TARGET_OPTSPACE
    1.94      bool
    1.95 -    prompt "Link libstdc++ statically into the gcc binary"
    1.96 +    prompt "Optimize gcc libs for size"
    1.97      default y
    1.98 -    depends on CC_GCC_4_4_or_later
    1.99      help
   1.100 -      Newer gcc versions use the PPL library which is C++ code.  Statically
   1.101 -      linking libstdc++ increases the likeliness that the gcc binary will
   1.102 -      run on machines other than the one which it was built on, without
   1.103 -      having to worry about distributing the matching version of libstdc++
   1.104 -      along with it.
   1.105 +      Pass --enable-target-optspace to crossgcc's configure.
   1.106 +      
   1.107 +      This will compile crossgcc's libs with -Os.
   1.108  
   1.109  config CC_GCC_LIBMUDFLAP
   1.110      bool