summaryrefslogtreecommitdiff
path: root/strata/build-essential/stage1-gcc.morph
diff options
context:
space:
mode:
Diffstat (limited to 'strata/build-essential/stage1-gcc.morph')
-rw-r--r--strata/build-essential/stage1-gcc.morph10
1 files changed, 10 insertions, 0 deletions
diff --git a/strata/build-essential/stage1-gcc.morph b/strata/build-essential/stage1-gcc.morph
index ed85b684..6571d346 100644
--- a/strata/build-essential/stage1-gcc.morph
+++ b/strata/build-essential/stage1-gcc.morph
@@ -1,6 +1,12 @@
name: stage1-gcc
kind: chunk
+pre-configure-commands:
+- |
+ case "$MORPH_ARCH" in
+ mips64*) sed -i "s/^\(\#define\s\+MIPS_ABI_DEFAULT\s\+\)ABI_32/\1ABI_64/" gcc/config/mips/mips.h ;;
+ esac
+
configure-commands:
# Workaround from LFS due GCC not detecting stack protection correctly
- sed -i '/k prot/agcc_cv_libc_provides_ssp=yes' gcc/configure
@@ -30,8 +36,12 @@ configure-commands:
--with-fpu=vfpv3-d16 \
--with-float=hard" ;;
armv7*) ARCH_FLAGS="--with-arch=armv7-a" ;;
+ mips64*) ARCH_FLAGS="--with-arch=octeon2 \
+ --with-abi=64" ;;
esac
+ TARGET_STAGE1=`echo $TARGET_STAGE1 | sed -e 's/bootstrap-linux-gnu/linux-musl/'`
+
cd o && ../configure \
$ARCH_FLAGS \
--build=$(sh ../config.guess) \