diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-01-10 11:53:26 +0100 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-01-10 11:53:26 +0100 |
commit | d08aee7a7eae23aaf35c1f129faa5a70d2f5510f (patch) | |
tree | 900362d33e020797fa6b2b7bafc87e9a39172b10 /cmake/CheckLinkerFlag.c | |
parent | Merge pull request #2990 (diff) | |
parent | Add misc hardening flags to the cmake machinery (diff) | |
download | monero-d08aee7a7eae23aaf35c1f129faa5a70d2f5510f.tar.xz |
Merge pull request #2993
776b44f1 Add misc hardening flags to the cmake machinery (moneromooo-monero)
Diffstat (limited to 'cmake/CheckLinkerFlag.c')
-rw-r--r-- | cmake/CheckLinkerFlag.c | 14 |
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; +} |