projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ 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