mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-30 08:03:59 +00:00
decouple darwin/clang here as per #712
https://github.com/crosstool-ng/crosstool-ng/issues/712#issuecomment-300891861
This commit is contained in:
parent
2306701d2c
commit
5d84835f90
@ -104,18 +104,17 @@ do_debug_gdb_build() {
|
|||||||
cross_LDFLAGS+=" -static"
|
cross_LDFLAGS+=" -static"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "${CT_HOST}" in
|
if ${CT_HOST}-gcc --version 2>&1 | grep clang; then
|
||||||
*darwin*)
|
# FIXME: Now we really are testing for host compiler being clang
|
||||||
# FIXME: Really, we should be testing for host compiler being clang.
|
# (also in crosstool-NG.sh), commented
|
||||||
cross_CFLAGS+=" -Qunused-arguments"
|
# cross_CFLAGS+=" -Qunused-arguments"
|
||||||
cross_CXXFLAGS+=" -Qunused-arguments"
|
cross_CXXFLAGS+=" -Qunused-arguments"
|
||||||
# clang detects the line from gettext's _ macro as format string
|
# clang detects the line from gettext's _ macro as format string
|
||||||
# not being a string literal and produces a lot of warnings - which
|
# not being a string literal and produces a lot of warnings - which
|
||||||
# ct-ng's logger faithfully relays to user if this happens in the
|
# ct-ng's logger faithfully relays to user if this happens in the
|
||||||
# error() function. Suppress them.
|
# error() function. Suppress them.
|
||||||
cross_extra_config+=("--enable-build-warnings=,-Wno-format-nonliteral,-Wno-format-security")
|
cross_extra_config+=("--enable-build-warnings=,-Wno-format-nonliteral,-Wno-format-security")
|
||||||
;;
|
fi
|
||||||
esac
|
|
||||||
|
|
||||||
# Fix up whitespace. Some older GDB releases (e.g. 6.8a) get confused if there
|
# Fix up whitespace. Some older GDB releases (e.g. 6.8a) get confused if there
|
||||||
# are multiple consecutive spaces: sub-configure scripts replace them with a
|
# are multiple consecutive spaces: sub-configure scripts replace them with a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user