scripts/build/cc/gcc.sh
changeset 3254 e2e0f34eab6c
parent 3244 8ff20760e93b
child 3269 6bf3336283c2
     1.1 --- a/scripts/build/cc/gcc.sh	Fri Nov 08 15:18:09 2013 +0100
     1.2 +++ b/scripts/build/cc/gcc.sh	Tue Nov 19 14:44:02 2013 +0800
     1.3 @@ -164,6 +164,7 @@
     1.4  #   lang_list           : the list of languages to build            : string    : (empty)
     1.5  #   build_libgcc        : build libgcc or not                       : bool      : no
     1.6  #   build_libstdcxx     : build libstdc++ or not                    : bool      : no
     1.7 +#   build_libgfortran   : build libgfortran or not                  : bool      : no
     1.8  #   build_staticlinked  : build statically linked or not            : bool      : no
     1.9  #   build_manuals       : whether to build manuals or not           : bool      : no
    1.10  #   cflags              : cflags to use                             : string    : (empty)
    1.11 @@ -173,6 +174,7 @@
    1.12      local mode
    1.13      local build_libgcc=no
    1.14      local build_libstdcxx=no
    1.15 +    local build_libgfortran=no
    1.16      local build_staticlinked=no
    1.17      local build_manuals=no
    1.18      local host
    1.19 @@ -457,6 +459,12 @@
    1.20          core_targets+=( target-libstdc++-v3 )
    1.21      fi
    1.22  
    1.23 +    if [    "${build_libgfortran}" = "yes"    \
    1.24 +         -a "${CT_CC_LANG_FORTRAN}"  = "y"    \
    1.25 +       ]; then
    1.26 +        core_targets+=( target-libgfortran )
    1.27 +    fi
    1.28 +
    1.29      CT_DoLog EXTRA "Building gcc"
    1.30      CT_DoExecLog ALL make ${JOBSFLAGS} "${core_targets[@]/#/all-}"
    1.31  
    1.32 @@ -521,6 +529,7 @@
    1.33          build_final_opts+=( "mode=baremetal" )
    1.34          build_final_opts+=( "build_libgcc=yes" )
    1.35          build_final_opts+=( "build_libstdcxx=yes" )
    1.36 +        build_final_opts+=( "build_libgfortran=yes" )
    1.37          if [ "${CT_STATIC_TOOLCHAIN}" = "y" ]; then
    1.38              build_final_opts+=( "build_staticlinked=yes" )
    1.39          fi
    1.40 @@ -557,6 +566,7 @@
    1.41          final_opts+=( "mode=baremetal" )
    1.42          final_opts+=( "build_libgcc=yes" )
    1.43          final_opts+=( "build_libstdcxx=yes" )
    1.44 +        final_opts+=( "build_libgfortran=yes" )
    1.45          if [ "${CT_STATIC_TOOLCHAIN}" = "y" ]; then
    1.46              final_opts+=( "build_staticlinked=yes" )
    1.47          fi