diff options
author | Alexei Starovoitov <ast@kernel.org> | 2018-06-04 19:53:41 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-05 10:21:18 -0400 |
commit | 819dd92b9c0bc7bce9097d8c1f14240f471bb386 (patch) | |
tree | 6339c2d655bd680026f1bc56f2f8798a2088a577 /scripts/cc-can-link.sh | |
parent | 47a6ca3f972f5baf06cd0c9f37d7b5268ade5363 (diff) | |
download | linux-riscv-819dd92b9c0bc7bce9097d8c1f14240f471bb386.tar.gz linux-riscv-819dd92b9c0bc7bce9097d8c1f14240f471bb386.tar.bz2 linux-riscv-819dd92b9c0bc7bce9097d8c1f14240f471bb386.zip |
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>
Diffstat (limited to 'scripts/cc-can-link.sh')
-rwxr-xr-x | scripts/cc-can-link.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/cc-can-link.sh b/scripts/cc-can-link.sh new file mode 100755 index 000000000000..208eb2825dab --- /dev/null +++ b/scripts/cc-can-link.sh @@ -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 |