mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-21 17:26:41 +00:00
scripts/build/cc: pass FLAGS_FOR_TARGET in do_gcc_core_backend
Pass CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET and LDFLAGS_FOR_TARGET to gcc configure in do_gcc_core_backend as they may be used to build libstdc++ for bare-metal target. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
parent
8a65d08b27
commit
02d8e4a514
@ -423,6 +423,9 @@ do_gcc_core_backend() {
|
|||||||
CFLAGS="${cflags}" \
|
CFLAGS="${cflags}" \
|
||||||
CXXFLAGS="${cflags}" \
|
CXXFLAGS="${cflags}" \
|
||||||
LDFLAGS="${core_LDFLAGS[*]}" \
|
LDFLAGS="${core_LDFLAGS[*]}" \
|
||||||
|
CFLAGS_FOR_TARGET="${CT_TARGET_CFLAGS}" \
|
||||||
|
CXXFLAGS_FOR_TARGET="${CT_TARGET_CFLAGS}" \
|
||||||
|
LDFLAGS_FOR_TARGET="${CT_TARGET_LDFLAGS}" \
|
||||||
"${CT_SRC_DIR}/gcc-${CT_CC_GCC_VERSION}/configure" \
|
"${CT_SRC_DIR}/gcc-${CT_CC_GCC_VERSION}/configure" \
|
||||||
--build=${CT_BUILD} \
|
--build=${CT_BUILD} \
|
||||||
--host=${host} \
|
--host=${host} \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user