Skip to content

Commit cf81c3a

Browse files
metuxmasahir0y
authored andcommitted
kconfig: mconf: fix HOSTCC call
Commit c0f975a ("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: c0f975a ("kconfig: Support building mconf with vendor sysroot ncurses") Signed-off-by: Enrico Weigelt, metux IT consult <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 9b61643 commit cf81c3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/kconfig/mconf-cfg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fi
3535

3636
# As a final fallback before giving up, check if $HOSTCC knows of a default
3737
# 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
3939
echo cflags=\"-D_GNU_SOURCE\"
4040
echo libs=\"-lncurses\"
4141
exit 0

0 commit comments

Comments
 (0)