summaryrefslogtreecommitdiff
path: root/scripts/build/companion_libs/220-ncurses.sh
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2015-11-10 02:36:52 (GMT)
committerAlexey Neyman <stilor@att.net>2015-11-13 18:32:26 (GMT)
commitbe2203be68166880c0dcc67e06a5cc96995c98b7 (patch)
tree9ead4df04cfa3f36f420193be2275025b0b922db /scripts/build/companion_libs/220-ncurses.sh
parent16f7a9578f094cfd00a5cb6fdeec6e27ad9c25a6 (diff)
Pass CFLAGS/LDFLAGS to backends.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/companion_libs/220-ncurses.sh')
-rw-r--r--scripts/build/companion_libs/220-ncurses.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/build/companion_libs/220-ncurses.sh b/scripts/build/companion_libs/220-ncurses.sh
index 2011a65..176e99f 100644
--- a/scripts/build/companion_libs/220-ncurses.sh
+++ b/scripts/build/companion_libs/220-ncurses.sh
@@ -34,6 +34,8 @@ do_ncurses_for_build() {
"--without-ada")
do_ncurses_backend host="${CT_BUILD}" \
destdir="${CT_BUILDTOOLS_PREFIX_DIR}" \
+ cflags="${CT_CFLAGS_FOR_BUILD}" \
+ ldflags="${CT_LDFLAGS_FOR_BUILD}" \
"${opts[@]}"
CT_Popd
CT_EndStep
@@ -60,6 +62,8 @@ do_ncurses_for_host() {
"--without-ada")
do_ncurses_backend host="${CT_HOST}" \
prefix="${CT_HOST_COMPLIBS_DIR}" \
+ cflags="${CT_CFLAGS_FOR_HOST}" \
+ ldflags="${CT_LDFLAGS_FOR_HOST}" \
"${opts[@]}"
CT_Popd
CT_EndStep
@@ -120,6 +124,8 @@ do_ncurses_backend() {
CT_DoLog EXTRA "Configuring ncurses"
CT_DoExecLog CFG \
+ CFLAGS="${cflags}" \
+ LDFLAGS="${ldflags}" \
"${CT_SRC_DIR}/ncurses-${CT_NCURSES_VERSION}/configure" \
--build=${CT_BUILD} \
--host=${host} \