bpfilter: switch to CC from HOSTCC
check that CC can build executables and use that compiler instead of HOSTCC Suggested-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
47a6ca3f97
commit
819dd92b9c
11
scripts/cc-can-link.sh
Executable file
11
scripts/cc-can-link.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/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
|
Reference in New Issue
Block a user