summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Martin <paul.martin@codethink.co.uk>2015-05-20 11:47:17 +0000
committerRichard Dale <richard.dale@codethink.co.uk>2015-06-25 15:04:17 +0100
commit1aaf14e11bdeeb2cdbca77c23a1fd1f5ce85e212 (patch)
tree23173af51d53770cb311038e6c4e51b7f25f8620
parent37d29c7da8c903f4ade397c6ec788479ef00fb21 (diff)
downloaddefinitions-1aaf14e11bdeeb2cdbca77c23a1fd1f5ce85e212.tar.gz
Force gcc to build mips32 code for 32-bit MIPS environments, rather than mips1
-rw-r--r--strata/build-essential/gcc.morph2
-rw-r--r--strata/build-essential/stage1-gcc.morph2
-rw-r--r--strata/build-essential/stage2-gcc.morph2
3 files changed, 6 insertions, 0 deletions
diff --git a/strata/build-essential/gcc.morph b/strata/build-essential/gcc.morph
index 0eb5ae67..97c1d533 100644
--- a/strata/build-essential/gcc.morph
+++ b/strata/build-essential/gcc.morph
@@ -42,6 +42,8 @@ configure-commands:
armv7*) ARCH_FLAGS="--with-arch=armv7-a" ;;
mips64*) ARCH_FLAGS="--with-arch=octeon2 \
--with-abi=64" ;;
+ mips*) ARCH_FLAGS="--with-arch=mips32 \
+ --with-abi=32" ;;
esac
TARGET_STAGE1=`echo $TARGET_STAGE1 | sed -e 's/bootstrap-linux-gnu/linux-musl/'`
diff --git a/strata/build-essential/stage1-gcc.morph b/strata/build-essential/stage1-gcc.morph
index 6571d346..c78b2020 100644
--- a/strata/build-essential/stage1-gcc.morph
+++ b/strata/build-essential/stage1-gcc.morph
@@ -38,6 +38,8 @@ configure-commands:
armv7*) ARCH_FLAGS="--with-arch=armv7-a" ;;
mips64*) ARCH_FLAGS="--with-arch=octeon2 \
--with-abi=64" ;;
+ mips*) ARCH_FLAGS="--with-arch=mips32 \
+ --with-abi=32" ;;
esac
TARGET_STAGE1=`echo $TARGET_STAGE1 | sed -e 's/bootstrap-linux-gnu/linux-musl/'`
diff --git a/strata/build-essential/stage2-gcc.morph b/strata/build-essential/stage2-gcc.morph
index 15bad22c..d4bcdf64 100644
--- a/strata/build-essential/stage2-gcc.morph
+++ b/strata/build-essential/stage2-gcc.morph
@@ -35,6 +35,8 @@ configure-commands:
armv7*) ARCH_FLAGS="--with-arch=armv7-a" ;;
mips64*) ARCH_FLAGS="--with-arch=mips64 \
--with-abi=64" ;;
+ mips*) ARCH_FLAGS="--with-arch=mips32 \
+ --with-abi=32" ;;
esac
TARGET_STAGE1=`echo $TARGET_STAGE1 | sed -e 's/bootstrap-linux-gnu/linux-musl/'`
export STAGE2_SYSROOT="$(dirname $(pwd))"