summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. 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)
commit2ba7de9b903b4b0eb6ddffefa8a8865415cb5e42 (patch)
tree4e6d0fa69d85f9252a74f075613e87f2bef62eef /build
parentd562f30b491191423cee5da595a5215c954fc3a0 (diff)
build: Add a new builddir macro.
Diffstat (limited to 'build')
-rwxr-xr-xbuild10
1 files changed, 6 insertions, 4 deletions
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: <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}" \