diff options
author | Richard Dale <richard.dale@codethink.co.uk> | 2015-06-19 11:56:27 +0100 |
---|---|---|
committer | Richard Dale <richard.dale@codethink.co.uk> | 2015-06-19 11:56:27 +0100 |
commit | ac9b2a68f3488baa24d9c3f6d91d403fc3ec09ab (patch) | |
tree | 1ddfbdcd254c82a86d773e843af86201ba73b52a /strata/build-essential/stage2-gcc-fixed-headers.morph | |
parent | a5a754c117db06a87af3eebbf9cf848ed0f8b5c9 (diff) | |
download | definitions-ac9b2a68f3488baa24d9c3f6d91d403fc3ec09ab.tar.gz |
Use the musl build-essential morphs
Diffstat (limited to 'strata/build-essential/stage2-gcc-fixed-headers.morph')
-rw-r--r-- | strata/build-essential/stage2-gcc-fixed-headers.morph | 8 |
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}" |