summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-02-28 10:27:27 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-02-28 10:27:27 +0000
commit4ae23d0541960e39117c58d89f573fdb49a467db (patch)
tree6b0241b37968b3cf9e78be14d4f90fe4f4bffe05
parent9e73b3ddba9a5e4701c21075d911ed19c28b617b (diff)
downloaddefinitions-4ae23d0541960e39117c58d89f573fdb49a467db.tar.gz
fix gcc?5
-rw-r--r--strata/build-essential/stage1-gcc.morph3
1 files changed, 2 insertions, 1 deletions
diff --git a/strata/build-essential/stage1-gcc.morph b/strata/build-essential/stage1-gcc.morph
index 3bca51c0..d029364b 100644
--- a/strata/build-essential/stage1-gcc.morph
+++ b/strata/build-essential/stage1-gcc.morph
@@ -74,10 +74,11 @@ build-commands:
# code results on an undefined reference to `__gmpn_invert_limb' in
# ARMv7. Fix the invocation of GMP's configure script so that GMP can
# use the machine-dependent code.
+ cpu=$(uname -m)
case "$MORPH_ARCH" in
armv7*) sed -i "s/--host=none/--host=armv7a/" o/Makefile
sed -i "s/--target=none/--target=armv7a/" o/Makefile ;;
- armv6lhf) sed -i "s/none/armv6lhf/" o/Makefile ;;
+ armv6lhf) sed -i "s/none-/$cpu-/" o/Makefile ;;
esac
cd o && make