Frank Denis
b69159b5f8
Define _FORTIFY_SOURCE only on linux-gnu
5 years ago
Frank Denis
46afa6c3a9
Undefine _FORTIFY_SOURCE on MinGW - Required for current MinGW versions
5 years ago
Frank Denis
ad9cb57a4e
Use AX_ADD_FORTIFY_SOURCE
Include a workaround for newer versions of MingW
5 years ago
Frank Denis
5c804e1ac8
Better getentropy() usability checks
5 years ago
Frank Denis
146ce11b11
Use -fno-stack-check as an alternative to -ffreestanding
5 years ago
Frank Denis
203220116a
Temporarily disable getentropy()/getrandom() when using ASAN
ASAN assumes a recent version of the C library has been installed and
may end up intercepting functions that didn't exist if the actual C
library is old.
5 years ago
Frank Denis
d1e33bbc71
Add a workaround for broken Xcode 11 beta versions
5 years ago
Frank Denis
f7695fd634
Use AC_LINK_IFELSE for everything using inline assembly
5 years ago
Frank Denis
4b448b5095
Use AC_LINK_IFELSE instead of _COMPILE_IFELSE for cpuid detection
This apparently works around a bug on OpenSuSE on ARM and PPC when
LTO is enabled.
Still, as documented, LTO shouldn't be used when compiling the library.
5 years ago
Frank Denis
940ef42797
1.0.18
5 years ago
Frank Denis
eebf2255ca
Regen
5 years ago
Frank Denis
dfa8222d27
POSIX threads can be available while mutexes are not implemented
This is the odd case of WASI right now
5 years ago
Frank Denis
697a371a42
Don't enable the stack protector on unknown operating systems
5 years ago
Luca Boccassi
ecdcf55173
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
AC_SUBST doesn't require explicit values
Regen autoconf
Fixes #800
6 years ago
Frank Denis
c2a98a170f
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
7e590f7cce
Merge old compiler detection with AVX512f support detection
Maybe
fixes #786
6 years ago
Frank Denis
762e5136ed
Merge old compiler detection with AVX512f support detection
Maybe
fixes #786
6 years ago
Frank Denis
43d51e4e6d
Disable AVX512 when using ancient versions of GCC
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
bff91a85f4
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
19d1affa79
Revert "Check for -mretpoline / -zretpolineplt support"
This reverts commit 93887f179d
.
7 years ago
Frank Denis
673b2b2b1e
Revert "Check for -mretpoline / -zretpolineplt support"
This reverts commit 93887f179d
.
7 years ago
Frank Denis
482ec23611
Check for __aarch64__ instead of __ARM_NEON for 128-bit arithmetic
7 years ago
Frank Denis
794ec886e7
Check for __aarch64__ instead of __ARM_NEON for 128-bit arithmetic
7 years ago
Frank Denis
d76885d554
Check for -mretpoline / -zretpolineplt support
7 years ago
Frank Denis
93887f179d
Check for -mretpoline / -zretpolineplt support
7 years ago
Frank Denis
59f8556bfa
Check if we can use inline asm code, not only on x86_64
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
bf1444f976
Do not assume that __clang__ being defined implied __GNUC__ defined as well
7 years ago
Frank Denis
535559420e
Enable 128-bit arithmetic clang+systems with NEON
7 years ago
Frank Denis
a8ef83ed53
Enable 128-bit arithmetic clang+systems with NEON
7 years ago
Frank Denis
1515f1b3ba
Disable ssp on HaikuOS
7 years ago
Frank Denis
1dd73862be
Disable ssp on HaikuOS
7 years ago