mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-03-11 15:04:19 +00:00
Honor CFLAGS_FOR_BUILD
Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
parent
07a3b822f5
commit
1e37cd5450
@ -200,7 +200,9 @@ do_binutils_backend() {
|
|||||||
|
|
||||||
CT_DoExecLog CFG \
|
CT_DoExecLog CFG \
|
||||||
CC_FOR_BUILD="${CT_BUILD}-gcc" \
|
CC_FOR_BUILD="${CT_BUILD}-gcc" \
|
||||||
CFLAGS_FOR_BUILD="${cflags_for_build}" \
|
CFLAGS_FOR_BUILD="${CT_CFLAGS_FOR_BUILD}" \
|
||||||
|
CXXFLAGS_FOR_BUILD="${CT_CFLAGS_FOR_BUILD}" \
|
||||||
|
LDFLAGS_FOR_BUILD="${CT_LDFLAGS_FOR_BUILD}" \
|
||||||
CFLAGS="${cflags}" \
|
CFLAGS="${cflags}" \
|
||||||
CXXFLAGS="${cflags}" \
|
CXXFLAGS="${cflags}" \
|
||||||
LDFLAGS="${ldflags}" \
|
LDFLAGS="${ldflags}" \
|
||||||
|
@ -547,7 +547,7 @@ do_gcc_core_backend() {
|
|||||||
CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
|
CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
|
||||||
|
|
||||||
# We may need to modify host/build CFLAGS separately below
|
# We may need to modify host/build CFLAGS separately below
|
||||||
cflags_for_build="${cflags}"
|
cflags_for_build="${CT_CFLAGS_FOR_BUILD}"
|
||||||
|
|
||||||
# Clang's default bracket-depth is 256, and building GCC
|
# Clang's default bracket-depth is 256, and building GCC
|
||||||
# requires somewhere between 257 and 512.
|
# requires somewhere between 257 and 512.
|
||||||
|
@ -141,7 +141,8 @@ do_debug_gdb_build() {
|
|||||||
|
|
||||||
CT_DoExecLog CFG \
|
CT_DoExecLog CFG \
|
||||||
CC_FOR_BUILD="${CT_BUILD}-gcc" \
|
CC_FOR_BUILD="${CT_BUILD}-gcc" \
|
||||||
CFLAGS_FOR_BUILD="${cflags_for_build}" \
|
CFLAGS_FOR_BUILD="${CT_CFLAGS_FOR_BUILD}" \
|
||||||
|
LDFLAGS_FOR_BUILD="${CT_LDFLAGS_FOR_BUILD}" \
|
||||||
CPP="${CPP_for_gdb}" \
|
CPP="${CPP_for_gdb}" \
|
||||||
CC="${CC_for_gdb}" \
|
CC="${CC_for_gdb}" \
|
||||||
CXX="${CXX_for_gdb}" \
|
CXX="${CXX_for_gdb}" \
|
||||||
@ -261,7 +262,8 @@ do_debug_gdb_build() {
|
|||||||
|
|
||||||
CT_DoExecLog CFG \
|
CT_DoExecLog CFG \
|
||||||
CC_FOR_BUILD="${CT_BUILD}-gcc" \
|
CC_FOR_BUILD="${CT_BUILD}-gcc" \
|
||||||
CFLAGS_FOR_BUILD="${cflags_for_build}" \
|
CFLAGS_FOR_BUILD="${CT_CFLAGS_FOR_BUILD}" \
|
||||||
|
LDFLAGS_FOR_BUILD="${CT_LDFLAGS_FOR_BUILD}" \
|
||||||
CPP="${CPP_for_gdb}" \
|
CPP="${CPP_for_gdb}" \
|
||||||
CC="${CC_for_gdb}" \
|
CC="${CC_for_gdb}" \
|
||||||
CXX="${CXX_for_gdb}" \
|
CXX="${CXX_for_gdb}" \
|
||||||
@ -339,7 +341,8 @@ do_debug_gdb_build() {
|
|||||||
|
|
||||||
CT_DoExecLog CFG \
|
CT_DoExecLog CFG \
|
||||||
CC_FOR_BUILD="${CT_BUILD}-gcc" \
|
CC_FOR_BUILD="${CT_BUILD}-gcc" \
|
||||||
CFLAGS_FOR_BUILD="${cflags_for_build}" \
|
CFLAGS_FOR_BUILD="${CT_CFLAGS_FOR_BUILD}" \
|
||||||
|
LDFLAGS_FOR_BUILD="${CT_LDFLAGS_FOR_BUILD}" \
|
||||||
CC="${CT_TARGET}-${CT_CC}" \
|
CC="${CT_TARGET}-${CT_CC}" \
|
||||||
CPP="${CT_TARGET}-cpp" \
|
CPP="${CT_TARGET}-cpp" \
|
||||||
LD="${CT_TARGET}-ld" \
|
LD="${CT_TARGET}-ld" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user