diff options
author | P. J. McDermott <pjm@nac.net> | 2013-04-22 13:18:51 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-04-22 13:18:51 (EDT) |
commit | 2ba7de9b903b4b0eb6ddffefa8a8865415cb5e42 (patch) | |
tree | 4e6d0fa69d85f9252a74f075613e87f2bef62eef /build | |
parent | d562f30b491191423cee5da595a5215c954fc3a0 (diff) |
build: Add a new builddir macro.
Diffstat (limited to 'build')
-rwxr-xr-x | build | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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: <http://gcc.gnu.org/ml/gcc/2013-04/msg00171.html>. # 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}" \ |