Jason Rhinelander
6069b726e1
Fix ntru avx2 compilation when DOWNLOAD_SODIUM
...
We don't explicitly have to link against it, but it doesn't hurt *and*
this also pulls in the proper sodium include path, which we do need.
2020-01-07 19:58:18 -04:00
Jason Rhinelander
210cb837c6
Enable -avx2 -fma for ntru even when compiling without AVX2 support
...
This code is runtime guarded with CPU feature tests, so even if we are
making a non-AVX2 build we still want to compile the avx code path with
-mavx2 -mfma so that it can be opportunistically used when run on
AVX2-supporting CPUs (particularly for the debs and release binaries).
2020-01-07 18:39:46 -04:00
Jason Rhinelander
54b644e280
Add -DDOWNLOAD_SODIUM to re-enabled dl&build of sodium
...
Also supported in the Makefile (e.g. `make DOWNLOAD_SODIUM=ON`)
Also DRYs out the Makefile a little.
2019-12-16 20:52:44 -04:00
Jeff Becker
30a8bb681f
more
2019-12-16 09:04:35 -05:00
Jeff Becker
31150fa4d0
require version
2019-12-16 09:03:19 -05:00
Jason Rhinelander
57ccb1fd5c
Move sodium download into separate cmake include
2019-10-31 17:49:08 -03:00
Jeff Becker
c1a81d26f1
pull in libsodium if local version sucks
2019-10-31 15:30:02 -04:00
Rick V
d02d4ac044
remove vendored libsodium
2019-10-30 18:02:35 -05:00
Jeff
49b410b437
Merge pull request #888 from majestrate/fix-broken-build-2019-10-30
...
fix typo in cmake
2019-10-30 13:02:54 -04:00
Jason Rhinelander
0774213e87
Fix cmake sodium version check
2019-10-30 13:25:23 -03:00
Jeff Becker
f228eca39e
fix typo
2019-10-30 10:46:29 -04:00
Jeff Becker
3ebea458e9
use vendored libsodium if we dont have a good version
2019-10-29 12:31:36 -04:00
Jeff Becker
f38240f945
devendor libsodium by default except for android
2019-10-29 12:01:58 -04:00
Michael
90373b806c
Fix log tag after cmake changes
2019-02-15 20:49:10 +00:00
Michael
1aeacb0043
Refactor CMakeLists into distinct directories
2019-02-12 01:19:37 +00:00