From 4ae23d0541960e39117c58d89f573fdb49a467db Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Sat, 28 Feb 2015 10:27:27 +0000 Subject: fix gcc?5 --- strata/build-essential/stage1-gcc.morph | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1