summaryrefslogtreecommitdiff
path: root/scripts/build/companion_libs/220-ncurses.sh
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2015-11-10 00:08:28 (GMT)
committerAlexey Neyman <stilor@att.net>2015-11-13 18:31:46 (GMT)
commit4d2d2ba954edc2fb893bd1d2f7a1e0acd4da23de (patch)
treeec1ad202dab99ca807fb71e46646d5c5a16660a3 /scripts/build/companion_libs/220-ncurses.sh
parent6102726147a6e81fd7ec209db14337055a99b84b (diff)
Enable building expat/ncurses for host.
Then re-enable cross-gdb for nios2-spico-elf sample, previously disabled.
Diffstat (limited to 'scripts/build/companion_libs/220-ncurses.sh')
-rw-r--r--scripts/build/companion_libs/220-ncurses.sh37
1 files changed, 37 insertions, 0 deletions
diff --git a/scripts/build/companion_libs/220-ncurses.sh b/scripts/build/companion_libs/220-ncurses.sh
index f108214..2011a65 100644
--- a/scripts/build/companion_libs/220-ncurses.sh
+++ b/scripts/build/companion_libs/220-ncurses.sh
@@ -23,6 +23,7 @@ do_ncurses_extract() {
# We need tic that runs on the build when building ncurses for host/target
do_ncurses_for_build() {
local -a opts
+
CT_DoStep INFO "Installing ncurses for build"
CT_mkdir_pushd "${CT_BUILD_DIR}/build-ncurses-build-${CT_BUILD}"
opts=("--enable-symlinks" \
@@ -38,6 +39,33 @@ do_ncurses_for_build() {
CT_EndStep
}
+if [ "${CT_NCURSES}" = "y" ]; then
+do_ncurses_for_host() {
+ local -a opts
+
+ # Unlike other companion libs, we skip host build if build==host
+ # (i.e. in simple cross or native): ncurses may not be needed for
+ # host, but we still need them on build to produce 'tic'.
+ case "${CT_TOOLCHAIN_TYPE}" in
+ native|cross) return 0;;
+ esac
+
+ CT_DoStep INFO "Installing ncurses for host"
+ CT_mkdir_pushd "${CT_BUILD_DIR}/build-ncurses-host-${CT_HOST}"
+ opts=("--enable-symlinks" \
+ "--without-manpages" \
+ "--without-tests" \
+ "--without-cxx" \
+ "--without-cxx-binding" \
+ "--without-ada")
+ do_ncurses_backend host="${CT_HOST}" \
+ prefix="${CT_HOST_COMPLIBS_DIR}" \
+ "${opts[@]}"
+ CT_Popd
+ CT_EndStep
+}
+fi
+
if [ "${CT_NCURSES_TARGET}" = "y" ]; then
do_ncurses_for_target() {
CT_DoStep INFO "Installing ncurses for target"
@@ -81,6 +109,15 @@ do_ncurses_backend() {
esac
done
+ case "$host" in
+ *-*-mingw*)
+ # Needed to build for mingw, see
+ # http://lists.gnu.org/archive/html/info-gnu/2011-02/msg00020.html
+ ncurses_opts+=("--enable-term-driver")
+ ncurses_opts+=("--enable-sp-funcs")
+ ;;
+ esac
+
CT_DoLog EXTRA "Configuring ncurses"
CT_DoExecLog CFG \
"${CT_SRC_DIR}/ncurses-${CT_NCURSES_VERSION}/configure" \