summaryrefslogtreecommitdiff
path: root/strata/build-essential/stage1-binutils.morph
diff options
context:
space:
mode:
Diffstat (limited to 'strata/build-essential/stage1-binutils.morph')
-rw-r--r--strata/build-essential/stage1-binutils.morph5
1 files changed, 5 insertions, 0 deletions
diff --git a/strata/build-essential/stage1-binutils.morph b/strata/build-essential/stage1-binutils.morph
index 69a79d14..0543f17d 100644
--- a/strata/build-essential/stage1-binutils.morph
+++ b/strata/build-essential/stage1-binutils.morph
@@ -16,8 +16,13 @@ configure-commands:
# x86_64).
- |
+ case "$MORPH_ARCH" in
+ mips64*) ARCH_FLAGS="--with-arch=octeon2" ;;
+ esac
+ TARGET_STAGE1=`echo $TARGET_STAGE1 | sed -e 's/bootstrap-linux-gnu/linux-musl/'`
./configure --prefix="$PREFIX" --disable-nls --disable-werror \
--build=$(sh config.guess) \
--host=$(sh config.guess) \
--target=$TARGET_STAGE1 \
+ $ARCH_FLAGS \
--with-sysroot=/nonexistentdir --with-lib-path="=$PREFIX/lib:=$PREFIX/lib64"