summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-03-20 09:00:10 (GMT)
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-03-20 11:21:20 (GMT)
commit40bb8f430d1adf3011c0cbb82f7b505eb1c25490 (patch)
tree1d22d076870b89402d7659536158542f99c333e5
parent73fb47f70c95b62138a4c59a80464a58dde200ae (diff)
downloaddefinitions-baserock/tristan/wip/aboriginal.tar.gz
gdb.morph: configure --disable-tui when building for arm.baserock/tristan/wip/aboriginal
The gdb build fails in the tui directory on armv5l, found this random webpage which recommends --disable-tui when building gdb for arm as well: https://how-to-build-for-arm.wikispaces.com/gdb Conclusion, just disable tui for gdb arm.
-rw-r--r--strata/tools/gdb.morph9
1 files changed, 7 insertions, 2 deletions
diff --git a/strata/tools/gdb.morph b/strata/tools/gdb.morph
index 6f60da9..e543940 100644
--- a/strata/tools/gdb.morph
+++ b/strata/tools/gdb.morph
@@ -2,5 +2,10 @@ name: gdb
kind: chunk
build-system: autotools
configure-commands:
-- ./configure --prefix="$PREFIX" --disable-werror --disable-gas --disable-binutils
- --disable-ld --disable-gold --disable-gprof
+- |
+ case "$MORPH_ARCH" in
+ arm*) ARCH_FLAGS="--disable-tui" ;;
+ esac
+ ./configure --prefix="$PREFIX" $ARCH_FLAGS --disable-werror \
+ --disable-gas --disable-binutils \
+ --disable-ld --disable-gold --disable-gprof