From ac9b2a68f3488baa24d9c3f6d91d403fc3ec09ab Mon Sep 17 00:00:00 2001 From: Richard Dale Date: Fri, 19 Jun 2015 11:56:27 +0100 Subject: Use the musl build-essential morphs --- strata/build-essential/stage2-gcc-fixed-headers.morph | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'strata/build-essential/stage2-gcc-fixed-headers.morph') 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}" -- cgit v1.2.1