summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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