1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 10:05:05 -07:00
Commit Graph

380 Commits

Author SHA1 Message Date
Frank Denis
445dc37c16 Disable ssp on Solaris where people may use old toolchains 2024-08-11 15:07:51 +02:00
Frank Denis
9511c982fb 1.0.20 2024-05-25 14:13:52 +02:00
Frank Denis
4c35c49029 Avoid quote 2024-04-27 23:16:00 +02:00
Frank Denis
73248a4972 Emscripten: --memory-init-file is not supported any more 2024-03-24 13:11:06 +01:00
Frank Denis
bb6e6a4b52 aarch64: set compiler attributes *after* including <arm_neon.h>
Fixes #1321
2023-10-20 13:57:44 +02:00
Frank Denis
7b5c887707 Don't use -Ofast; it's buggy on old gcc versions 2023-10-08 19:56:11 +02:00
Frank Denis
86a53a901a autoconf: proper check for ARM crypto extensions 2023-09-13 19:29:34 +02:00
Frank Denis
97f7722f2c autoconf: improve check for ARM crypto extensions
And don't forget to include <arm_neon.h> for the second
attempt.
2023-09-13 18:56:14 +02:00
Frank Denis
89a62f0fa8 Move Appveyor CI scripts to ci/appveyor 2023-09-13 09:00:06 +02:00
Frank Denis
ad0e68cff7 Bump 2023-09-13 09:00:05 +02:00
Frank Denis
e2935b6943 aarch64: try harder when checking for the crypto extensions 2023-09-12 15:59:05 +02:00
Frank Denis
3a6a6025cc Backport aarch64 support for aes256-gcm 2023-09-09 01:04:48 +02:00
Frank Denis
4f099fc593 Add proper CET support (followup to #1290) (#1291) 2023-07-19 18:31:55 +02:00
Frank Denis
abfbcab412 Use CLOCK_MONOTONIC for benchmarking, if possible 2023-02-15 19:53:33 +01:00
Frank Denis
1cfba584db Support memset_explicit() if available
NetBSD has explicit_memset(), but C23 decided to implement the
same thing but call it memset_explicit() instead. Go figure.
2022-11-21 15:29:25 +01:00
Frank Denis
e8dbdab216 Try using -Ofast / -O3 by default 2022-11-17 22:52:58 +01:00
Frank Denis
180ee26d06 Add -Wno-unknown-pragmas if supported 2022-11-16 22:24:14 +01:00
Frank Denis
63a46474e4 Repair CFLAGS/ CWFLAGS mixup 2022-11-16 13:42:47 +01:00
Frank Denis
d264b5cfe5 Nits 2022-11-14 23:44:21 +01:00
Frank Denis
0fc788d6af -mcpu=native -> -mtune=native 2022-11-14 23:23:34 +01:00
Jørgen P. Tjernø
100ccb452d Portability improvements (#1105)
* Move `raise` code to be behind an autoconf check

This moves the call to `raise` behind a `HAVE_RAISE` autoconf check,
in addition to `__wasm__`. This is intended to help porting to
other platforms that don't support `raise` (e.g. modern game consoles).

* Add autoconf check for `sysconf`

Only try to invoke `sysconf` if the target platform supports it, and
don't warn about unknown page size if `PAGE_SIZE` was defined. Add an
include for `sys/param.h` to increase likelihood of finding `PAGE_SIZE`.
This is intended to help porting to other platforms that don't support
`sysconf` (e.g. modern game consoles) that have a fixed hardware page
size.

* Don't try to use raise & sysconf in a WASI environment

Co-authored-by: Frank Denis <124872+jedisct1@users.noreply.github.com>
2021-10-09 18:39:02 +02:00
Frank Denis
4a64ce1836 WASI: remove wasi-sdk dependency; build module with zig 2021-07-19 12:36:29 +02:00
Frank Denis
54b8a00051 Update project URL and regen autoconf files 2021-05-25 19:18:43 +02:00
Frank Denis
b5b62722b7 Autoconf update & regen 2021-05-22 12:21:15 +02:00
Frank Denis
fd8215d29d wasi-libc exposes getpid() but it doesn't work without emulation 2021-05-22 11:57:23 +02:00
Ryan
2b5f8f2b68
s/eabi/eabi*/g in configure scripts to support eabihf (#977) 2020-07-03 11:45:52 +02:00
Frank Denis
ecbe5316dd Disable PIE/PIC/SP/async-unwind on eabi 2020-06-30 07:43:28 +02:00
Frank Denis
6bae891702 Don't add linker flags with the emscripten target
Regen
2020-05-26 17:59:19 +02:00
Frank Denis
b16da4f281 Move AC_USE_SYSTEM_EXTENSIONS up 2020-05-26 14:26:24 +02:00
Frank Denis
b69159b5f8 Define _FORTIFY_SOURCE only on linux-gnu 2019-12-04 23:30:37 +01:00
Frank Denis
46afa6c3a9 Undefine _FORTIFY_SOURCE on MinGW - Required for current MinGW versions 2019-12-04 21:04:39 +01:00
Frank Denis
ad9cb57a4e Use AX_ADD_FORTIFY_SOURCE
Include a workaround for newer versions of MingW
2019-11-11 01:07:05 +01:00
Frank Denis
5c804e1ac8 Better getentropy() usability checks 2019-10-23 18:23:31 +02:00
Frank Denis
146ce11b11 Use -fno-stack-check as an alternative to -ffreestanding 2019-09-17 15:43:25 +02:00
Frank Denis
0428e7baad Merge branch 'stable' of github.com:jedisct1/libsodium into stable
* 'stable' of github.com:jedisct1/libsodium:
  Add a workaround for broken Xcode 11 beta versions
2019-08-29 18:21:34 +02:00
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.
2019-08-29 17:48:20 +02:00
Frank Denis
d1e33bbc71 Add a workaround for broken Xcode 11 beta versions 2019-08-26 15:35:12 +02:00
Frank Denis
f7695fd634 Use AC_LINK_IFELSE for everything using inline assembly 2019-08-16 13:09:57 +02:00
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.
2019-08-16 12:28:42 +02:00
Frank Denis
940ef42797 1.0.18 2019-05-30 21:57:51 +02:00
Frank Denis
eebf2255ca Regen 2019-03-30 11:25:40 +01:00
Frank Denis
dfa8222d27 POSIX threads can be available while mutexes are not implemented
This is the odd case of WASI right now
2019-03-30 11:23:20 +01:00
Frank Denis
697a371a42 Don't enable the stack protector on unknown operating systems 2019-03-16 00:21:31 +01:00
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
2019-01-15 00:29:20 +01:00
Frank Denis
c2a98a170f Try -ftree-vectorize and -ftree-slp-vectorize for optimized builds 2019-01-07 12:26:30 +01:00
Frank Denis
4adf25c39f Bump DLL version 2019-01-06 17:25:35 +01:00
Frank Denis
462e9a648b local-dynamic is enough 2019-01-06 05:04:34 +01:00
Frank Denis
79d6a211b2 Set tls-model only if TLS is supported 2019-01-06 04:52:41 +01:00
Frank Denis
0157a378ca Enable -ftls-model=global-dynamic if available 2019-01-06 04:45:50 +01:00
Frank Denis
b7cb241eb9 Bump SODIUM_LIBRARY_VERSION_MINOR 2019-01-05 22:09:32 +01:00