check that CC can build executables and use that compiler instead of HOSTCC
Suggested-by: Arnd Bergmann Signed-off-by: Alexei Starovoitov Signed-off-by: David S. Miller
#!/bin/sh # SPDX-License-Identifier: GPL-2.0 cat << "END" | $@ -x c - -o /dev/null >/dev/null 2>&1 && echo "y" #include <stdio.h> int main(void) { printf(""); return 0; } END