Luca Boccassi
3933a7402c
Add -pthread to pkgconfig's Libs.private if enabled
Allows static builds to correctly inherit the pthread dependency when
used with pkg-config --static --libs libsodium
6 years ago
Frank Denis
3946784883
Try -ftree-vectorize and -ftree-slp-vectorize for optimized builds
6 years ago
Frank Denis
4adf25c39f
Bump DLL version
6 years ago
Frank Denis
462e9a648b
local-dynamic is enough
6 years ago
Frank Denis
79d6a211b2
Set tls-model only if TLS is supported
6 years ago
Frank Denis
0157a378ca
Enable -ftls-model=global-dynamic if available
6 years ago
Frank Denis
b7cb241eb9
Bump SODIUM_LIBRARY_VERSION_MINOR
6 years ago
Frank Denis
a01c5f8fd8
Add a conditional to enable retpoline support
Using retpoline in userland code that doesn't run arbitrary code is
questionable to start with.
Linux is also getting SPECTRE v2 userspace-to-userspace protection.
In addition, some platforms have a gcc version that advertises
support for retpolines, but the resulting binaries simply don't work
or cannot be linked.
So, do not enable this by default. Let builders choose if they
really want to enable this in their builds.
6 years ago
Frank Denis
ef3e5aadc7
Don't try to enable retpolines on Emscripten & pnacl
6 years ago
Frank Denis
f3ce049a98
Bump to 1.0.17
Not released yet. This is just to encourage people to test the current
code.
6 years ago
Frank Denis
b1b031106c
ISODATE is not used
6 years ago
Frank Denis
762e5136ed
Merge old compiler detection with AVX512f support detection
Maybe
fixes #786
6 years ago
Frank Denis
e60bb52a33
Disable AVX512 when using ancient versions of GCC
6 years ago
David Carlier
b3ba348d08
Provides explicit_memset supports/NetBSD.
Similar to explicit_bzero function is to defeat
compiler optimisation.
6 years ago
Frank Denis
bc7eb925bb
Clarify what --disable-asm does
6 years ago
Frank Denis
28e62a6c86
Use only -mindirect-branch=thunk / -mretpoline for now
Move the application of these flags up
6 years ago
Frank Denis
1655dede9f
Add retpoline support for clang
Assembly implementations don't seem to be using any indirect calls
6 years ago
Loganaden Velvindron
1203d721ce
Add spectre v2 migitations for GCC
6 years ago
Frank Denis
673b2b2b1e
Revert "Check for -mretpoline / -zretpolineplt support"
This reverts commit 93887f179d
.
7 years ago
Frank Denis
794ec886e7
Check for __aarch64__ instead of __ARM_NEON for 128-bit arithmetic
7 years ago
Frank Denis
93887f179d
Check for -mretpoline / -zretpolineplt support
7 years ago
Frank Denis
764656443f
Check if we can use inline asm code, not only on x86_64
7 years ago
Frank Denis
fff87d50dd
Restore the __EMSCRIPTEN__ check for 128-bit usage
7 years ago
Frank Denis
d73d5f8ee6
Rather than checking for emscripten, perform a 128-bit mul
7 years ago
Frank Denis
1f1b0afb5c
Do not assume that __clang__ being defined implied __GNUC__ defined as well
7 years ago
Frank Denis
a8ef83ed53
Enable 128-bit arithmetic clang+systems with NEON
7 years ago
Frank Denis
1dd73862be
Disable ssp on HaikuOS
7 years ago
Frank Denis
c2e742fa0a
-fomit-frame-pointer makes a different on mips
7 years ago
Frank Denis
18e2038fbb
Version bump [not released yet]
7 years ago
Frank Denis
06a523423a
Oh, the joy of compilers pretending to support C99, but that actually don't
7 years ago
Frank Denis
b84676c217
Don't bother with _Thread_local if compiled --without-pthreads
7 years ago
Frank Denis
a261eec0aa
Make the salsa20 random stream thread local
7 years ago
Frank Denis
ee2403deba
Check for RDRAND presence
7 years ago
Frank Denis
b9d6139178
Check for alloca()
7 years ago
Frank Denis
e7d85070dc
Use the default autoconf action to check for libctgrind
7 years ago
Frank Denis
e52ab67322
Detect ctgrind
7 years ago
Frank Denis
09ecb47a53
Use -O in debug mode
7 years ago
Frank Denis
c19946296c
FORTIFY_SOURCE -> _FORTIFY_SOURCE
7 years ago
Frank Denis
022f783cfc
Re-enable all warnings with --enable-debug
7 years ago
Frank Denis
b3ccb20078
Enable some extra compiler warnings
7 years ago
Frank Denis
aa67295dae
Undefine FORTIFY_SOURCE in debug mode
7 years ago
Frank Denis
a8ebd37b7b
Bump library version
7 years ago
Frank Denis
558355e566
Check if SIGABRT can be trapped multiple times in a row
7 years ago
Frank Denis
ae515a16aa
Bring back -fno-asynchronous-unwind-tables on MingW
7 years ago
Frank Denis
1f8056ab11
Use #error in autoconf tests
7 years ago
Frank Denis
147d8b6205
Disable AVX512 on MingW even harder
7 years ago
Frank Denis
ffce4334e4
Disable AVX512 on MingW for now
7 years ago
Frank Denis
07de00bc9a
Revert -fno-asynchronous-unwind-tables addition
Try linking an object with AVX-512 opcodes instead
7 years ago
Frank Denis
eb8c283dd8
Add -fno-asynchronous-unwind-tables to optimized builds
No need to check if the linker supports this.
7 years ago
Frank Denis
186b398a21
-fno-asynchronous-unwind-tables is now required on MingW
7 years ago