mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-23 14:42:26 +00:00
Duh! do not override ${cflags}
... in the backend function with ${CFLAGS_FOR_HOST}. The caller either supplies them already, or (in case of pass-1/2 of the canadian cross) passes ${CFLAGS_FOR_BUILD} there. Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
parent
7d621cd831
commit
a0249703fd
@ -542,9 +542,10 @@ 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/target CFLAGS separately below. Note
|
||||||
|
# that ${cflags} may refer either to build or host CFLAGS; they are provided
|
||||||
|
# by the caller.
|
||||||
cflags_for_build="${CT_CFLAGS_FOR_BUILD}"
|
cflags_for_build="${CT_CFLAGS_FOR_BUILD}"
|
||||||
cflags="${CT_CFLAGS_FOR_HOST}"
|
|
||||||
cflags_for_target="${CT_TARGET_CFLAGS}"
|
cflags_for_target="${CT_TARGET_CFLAGS}"
|
||||||
|
|
||||||
# Clang's default bracket-depth is 256, and building GCC
|
# Clang's default bracket-depth is 256, and building GCC
|
||||||
|
Loading…
Reference in New Issue
Block a user