summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}" \