bpfilter: switch to CC from HOSTCC
[linux-2.6-microblaze.git] / scripts / cc-can-link.sh
diff --git a/scripts/cc-can-link.sh b/scripts/cc-can-link.sh
new file mode 100755 (executable)
index 0000000..208eb28
--- /dev/null
@@ -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