mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-20 09:06:19 +00:00
Pass CFLAGS/LDFLAGS to backends.
Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
parent
16f7a9578f
commit
be2203be68
@ -26,7 +26,9 @@ do_expat_for_host() {
|
||||
CT_mkdir_pushd "${CT_BUILD_DIR}/build-expat-host-${CT_HOST}"
|
||||
|
||||
do_expat_backend host="${CT_HOST}" \
|
||||
prefix="${CT_HOST_COMPLIBS_DIR}"
|
||||
prefix="${CT_HOST_COMPLIBS_DIR}" \
|
||||
cflags="${CT_CFLAGS_FOR_HOST}" \
|
||||
ldflags="${CT_LDFLAGS_FOR_HOST}"
|
||||
|
||||
CT_Popd
|
||||
CT_EndStep
|
||||
@ -66,6 +68,8 @@ do_expat_backend() {
|
||||
CT_DoLog EXTRA "Configuring expat"
|
||||
|
||||
CT_DoExecLog CFG \
|
||||
CFLAGS="${cflags}" \
|
||||
LDFLAGS="${ldflags}" \
|
||||
"${CT_SRC_DIR}/expat-${CT_EXPAT_VERSION}/configure" \
|
||||
--build=${CT_BUILD} \
|
||||
--host=${host} \
|
||||
|
@ -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} \
|
||||
|
Loading…
x
Reference in New Issue
Block a user