Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kconfig: mconf: fix HOSTCC call

Commit c0f975af1745 ("kconfig: Support building mconf with vendor
sysroot ncurses") introduces a bug when HOSTCC contains parameters:
the whole command line is treated as the program name (with spaces
in it). Therefore, we have to remove the quotes.

Fixes: c0f975af1745 ("kconfig: Support building mconf with vendor sysroot ncurses")
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

authored by

Enrico Weigelt, metux IT consult and committed by
Masahiro Yamada
cf81c3ab 9b616434

+1 -1
+1 -1
scripts/kconfig/mconf-cfg.sh
··· 35 35 36 36 # As a final fallback before giving up, check if $HOSTCC knows of a default 37 37 # ncurses installation (e.g. from a vendor-specific sysroot). 38 - if echo '#include <ncurses.h>' | "${HOSTCC}" -E - >/dev/null 2>&1; then 38 + if echo '#include <ncurses.h>' | ${HOSTCC} -E - >/dev/null 2>&1; then 39 39 echo cflags=\"-D_GNU_SOURCE\" 40 40 echo libs=\"-lncurses\" 41 41 exit 0