1.1 --- a/scripts/build/cc/gcc.sh Wed Sep 14 12:59:17 2011 +0200
1.2 +++ b/scripts/build/cc/gcc.sh Wed Nov 16 10:06:21 2011 +1300
1.3 @@ -79,9 +79,9 @@
1.4 case "${CT_BARE_METAL},${CT_CANADIAN},${CT_THREADS}" in
1.5 y,*,*)
1.6 if [ "${CT_STATIC_TOOLCHAIN}" = "y" ]; then
1.7 - do_cc_core mode=baremetal build_libgcc=yes build_libstdcxx=yes build_staticlinked=yes
1.8 + do_cc_core mode=baremetal build_libgcc=yes build_libstdcxx=yes build_staticlinked=yes build_manuals=yes
1.9 else
1.10 - do_cc_core mode=baremetal build_libgcc=yes build_libstdcxx=yes
1.11 + do_cc_core mode=baremetal build_libgcc=yes build_libstdcxx=yes build_manuals=yes
1.12 fi
1.13 ;;
1.14 ,y,*) ;;
1.15 @@ -114,6 +114,7 @@
1.16 local build_libgcc=no
1.17 local build_libstdcxx=no
1.18 local build_staticlinked=no
1.19 + local build_manuals=no
1.20 local core_prefix_dir
1.21 local lang_opt
1.22 local tmp
1.23 @@ -381,6 +382,13 @@
1.24 CT_DoLog EXTRA "Installing ${mode} core C compiler"
1.25 CT_DoExecLog ALL make ${JOBSFLAGS} "${core_targets[@]/#/install-}"
1.26
1.27 + if [ "${CT_BUILD_MANUALS}" = "y" -a "${build_manuals}" = "yes" ]; then
1.28 + CT_DoLog EXTRA "Building the GCC manuals"
1.29 + CT_DoExecLog ALL make pdf html
1.30 + CT_DoLog EXTRA "Installing the GCC manuals"
1.31 + CT_DoExecLog ALL make install-{pdf,html}-gcc
1.32 + fi
1.33 +
1.34 # Create a symlink ${CT_TARGET}-cc to ${CT_TARGET}-gcc to always be able
1.35 # to call the C compiler with the same, somewhat canonical name.
1.36 # check whether compiler has an extension
1.37 @@ -625,6 +633,13 @@
1.38 CT_DoLog EXTRA "Installing final compiler"
1.39 CT_DoExecLog ALL make ${JOBSFLAGS} install
1.40
1.41 + if [ "${CT_BUILD_MANUALS}" = "y" ]; then
1.42 + CT_DoLog EXTRA "Building the GCC manuals"
1.43 + CT_DoExecLog ALL make ${JOBSFLAGS} pdf html
1.44 + CT_DoLog EXTRA "Installing the GCC manuals"
1.45 + CT_DoExecLog ALL make install-{pdf,html}-gcc
1.46 + fi
1.47 +
1.48 # Create a symlink ${CT_TARGET}-cc to ${CT_TARGET}-gcc to always be able
1.49 # to call the C compiler with the same, somewhat canonical name.
1.50 # check whether compiler has an extension