summaryrefslogtreecommitdiff
path: root/strata/build-essential/stage2-gcc-fixed-headers.morph
diff options
context:
space:
mode:
Diffstat (limited to 'strata/build-essential/stage2-gcc-fixed-headers.morph')
-rw-r--r--strata/build-essential/stage2-gcc-fixed-headers.morph8
1 files changed, 8 insertions, 0 deletions
diff --git a/strata/build-essential/stage2-gcc-fixed-headers.morph b/strata/build-essential/stage2-gcc-fixed-headers.morph
index 10794872..9e77c67f 100644
--- a/strata/build-essential/stage2-gcc-fixed-headers.morph
+++ b/strata/build-essential/stage2-gcc-fixed-headers.morph
@@ -1,5 +1,12 @@
name: stage2-gcc-fixed-headers
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
+
install-commands:
# Stage 1 GCC's fixincludes process created a limits.h before there was
# a real limits.h available for the target. This step (taken from Linux
@@ -10,6 +17,7 @@ install-commands:
# This is undesired behaviour in the long term, as we want to never
# have overlaps, so this functionality may go away.
- |
+ TARGET_STAGE1=`echo $TARGET_STAGE1 | sed -e 's/bootstrap-linux-gnu/linux-musl/'`
libgcc_dir=$(dirname $($TARGET_STAGE1-gcc -print-libgcc-file-name))
sysroot="$(dirname "$(pwd)")"
target_libgcc_dir="${libgcc_dir#$sysroot}"