From cc3c6e7abdeb8f0e3cfbe9e81fcd1bea6adcd49f Mon Sep 17 00:00:00 2001 From: mpapis Date: Mon, 24 Oct 2011 00:07:39 +0200 Subject: [PATCH] make gcc build (skip bootstrap) --- gcc/config/defaults | 2 +- gcc/shell/functions | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/gcc/config/defaults b/gcc/config/defaults index 02f5160..dc05613 100644 --- a/gcc/config/defaults +++ b/gcc/config/defaults @@ -3,4 +3,4 @@ base_url=ftp://mirror.rit.edu/gnu/gcc archive_format=tar.bz2 website_url=http://www.gnu.org/software/gcc/ docs_url=http://www.gnu.org/software/gcc/man.html -configure_flags=--with-gmp --with-mpfr --with-mpc --enable-build-with-cxx --disable-multilib +configure_flags=--with-gmp --with-mpfr --with-mpc --enable-build-with-cxx --disable-multilib --disable-werror --disable-bootstrap diff --git a/gcc/shell/functions b/gcc/shell/functions index 9d93356..efb9e33 100644 --- a/gcc/shell/functions +++ b/gcc/shell/functions @@ -11,14 +11,16 @@ gcc_prefetch() package configure flags "--with-pkgversion=GCC_SM_$(date +%Y%m%d_%H%M)" } -gcc_prconfigure() +gcc_preconfigure() { typeset GCC_BUILD_PATH - export configure_command PREFIX + export configure_command PREFIX BOOT_CFLAGS CFLAGS GCC_BUILD_PATH=$PWD-build PREFIX="${install_path}" - package configure flag "--prefix" "${install_path}" + BOOT_CFLAGS="${CFLAGS:='-g -O2'}" + package configure flag key "--prefix" "${install_path}" configure_command="$PWD/configure ${configure_flags[*]}" - \mkdir "${GCC_BUILD_PATH}" + \rm -rf "${GCC_BUILD_PATH}" + \mkdir -p "${GCC_BUILD_PATH}" \cd "${GCC_BUILD_PATH}" }