From 0de4b4d8bc2e1cef746a556c81092a10029dd310 Mon Sep 17 00:00:00 2001 From: davehome Date: Mon, 17 Oct 2011 04:45:07 +0000 Subject: [PATCH] gcc: Use do_configure() to speed up rebuilds. --- srcpkgs/gcc/template | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template index 38284b7691c..2fa748716e3 100644 --- a/srcpkgs/gcc/template +++ b/srcpkgs/gcc/template @@ -64,8 +64,9 @@ else _triplet="${xbps_machine}-pc-linux-gnu" fi -do_build() +do_configure() { + set +e if [ -n "$BOOTSTRAP_PKG_REBUILD" ]; then unset LD_LIBRARY_PATH LDLIBPATH LDFLAGS CPPFLAGS local SAVEDPATH=$PATH @@ -88,6 +89,18 @@ do_build() --enable-linker-build-id --enable-gnu-unique-object \ --enable-checking=release + [ -n "$BOOTSTRAP_PKG_REBUILD" ] && export PATH=$SAVEDPATH + set -e +} + +do_build() +{ + if [ -n "$BOOTSTRAP_PKG_REBUILD" ]; then + unset LD_LIBRARY_PATH LDLIBPATH LDFLAGS CPPFLAGS + local SAVEDPATH=$PATH + export PATH="/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin" + fi + make ${makejobs} [ -n "$BOOTSTRAP_PKG_REBUILD" ] && export PATH=$SAVEDPATH }