aboutsummaryrefslogtreecommitdiff
path: root/cmake/CheckLinkerFlag.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/CheckLinkerFlag.c')
-rw-r--r--cmake/CheckLinkerFlag.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/cmake/CheckLinkerFlag.c b/cmake/CheckLinkerFlag.c
new file mode 100644
index 000000000..a0dcc168d
--- /dev/null
+++ b/cmake/CheckLinkerFlag.c
@@ -0,0 +1,14 @@
+#ifdef __CLASSIC_C__
+int main()
+{
+ int ac;
+ char* av[];
+#else
+int main(int ac, char* av[])
+{
+#endif
+ if (ac > 1000) {
+ return *av[0];
+ }
+ return 0;
+}