From 2ba7de9b903b4b0eb6ddffefa8a8865415cb5e42 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 22 Apr 2013 13:18:51 -0400 Subject: build: Add a new builddir macro. --- (limited to 'build') diff --git a/build b/build index e728d11..1496629 100755 --- a/build +++ b/build @@ -30,22 +30,24 @@ bootstrap1_opts = \ --disable-libmudflap \ --disable-libssp +builddir = gcc-build + nop: @: configure: if [ 'x$(OPK_HOST_PLAT)' = 'xbootstrap1' ]; then \ - oh-autoconfigure -B gcc-build -- \ + oh-autoconfigure -B "$(builddir)" -- \ $(bootstrap1_opts); \ else \ - oh-autoconfigure -B gcc-build -- \ + oh-autoconfigure -B "$(builddir)" -- \ $(full_opts); \ fi touch $@ build: configure libsubdir="/usr/lib/$(OPK_HOST_ARCH)/gcc-$(base_version)" && \ - oh-autobuild -B gcc-build -T bootstrap-lean -- -j $${JOBS:-1} \ + oh-autobuild -B "$(builddir)" -T bootstrap-lean -- -j $${JOBS:-1} \ libsubdir="$${libsubdir}" \ libexecsubdir="$${libsubdir}" \ libsubincludedir="$${libsubdir}" \ @@ -65,7 +67,7 @@ install: build # See also: . # TODO: Replace $(OPK_HOST_ARCH) with the target arch. libsubdir="/usr/lib/$(OPK_HOST_ARCH)/gcc-$(base_version)" && \ - oh-autoinstall -B gcc-build -T install -- \ + oh-autoinstall -B "$(builddir)" -T install -- \ gxx_include_dir=/usr/include/c++-4.7 \ host_installdir=/usr/include/$(OPK_HOST_ARCH)/c++-4.7/bits \ libsubdir="$${libsubdir}" \ -- cgit v0.9.1