summaryrefslogtreecommitdiff
path: root/strata/build-essential/gcc.morph
diff options
context:
space:
mode:
Diffstat (limited to 'strata/build-essential/gcc.morph')
-rw-r--r--strata/build-essential/gcc.morph11
1 files changed, 10 insertions, 1 deletions
diff --git a/strata/build-essential/gcc.morph b/strata/build-essential/gcc.morph
index 3b4b5ece..02be4dda 100644
--- a/strata/build-essential/gcc.morph
+++ b/strata/build-essential/gcc.morph
@@ -11,8 +11,17 @@ configure-commands:
# 2. Avoid having more than one copy of ZLib in use on the system
# 3. Multilib does not make sense in Baserock.
- |
+ case "$MORPH_ARCH" in
+ armv7lhf) ARCH_FLAGS="--with-arch=armv7-a \
+ --with-cpu=cortex-a9 \
+ --with-tune=cortex-a9 \
+ --with-fpu=vfpv3-d16 \
+ --with-float=hard" ;;
+ armv7*) ARCH_FLAGS="--with-arch=armv7-a" ;;
+ esac
+
cd o && ../configure \
- $(../morph-arch-config) \
+ $ARCH_FLAGS \
--prefix="$PREFIX" \
`# [1]` --libdir=$PREFIX/lib \
--disable-bootstrap \