1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-24 04:25:10 -07:00
libsodium/dist-build
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
..
android-arm.sh Don't build arm and armv7 android targets in the same directory 2015-02-08 10:34:39 +01:00
android-armv7-a.sh armv7 -> armv7-a 2015-02-08 17:03:38 +01:00
android-armv8-a.sh Android: use PLATFORM 16 by default, don't bother with compat for API 21 2017-05-20 19:16:05 +02:00
android-build.sh android-build.sh: exit with return code 1 if the NDK is not present 2020-06-06 09:39:18 +02:00
android-mips32.sh Android: the mipsel target that disappeared in r14 is back in r14b 2017-03-24 17:22:33 +01:00
android-mips64.sh Android: use PLATFORM 16 by default, don't bother with compat for API 21 2017-05-20 19:16:05 +02:00
android-x86_64.sh Android: use PLATFORM 16 by default, don't bother with compat for API 21 2017-05-20 19:16:05 +02:00
android-x86.sh Don't build arm and armv7 android targets in the same directory 2015-02-08 10:34:39 +01:00
apple-xcframework.sh apple-xcframework: add bitcode support to all emulators 2020-11-10 16:59:37 +01:00
emscripten-symbols.def 1.0.18 2019-05-30 21:57:51 +02:00
emscripten.sh fix for asm.js async loading 2021-01-29 21:36:13 +01:00
generate-emscripten-symbols.sh Regen emscripten symbols 2018-12-25 12:50:13 +01:00
ios.sh Remove duplicate -fembed-bitcode 2020-01-28 13:43:26 +01:00
Makefile.am xcframework: also compile for macOS, rename to apple-xcframework.sh 2020-08-05 17:46:37 +02:00
Makefile.in Portability improvements (#1105) 2021-10-09 18:39:02 +02:00
msys2-win32.sh msys2 build scripts: just use -Ofast 2017-12-12 23:42:54 +01:00
msys2-win64.sh msys2 build scripts: just use -Ofast 2017-12-12 23:42:54 +01:00
osx.sh OSX -> MACOS 2020-08-05 17:44:28 +02:00
wasm32-wasi.sh No need to define the NM and STRIP commands 2021-07-19 12:52:29 +02:00
watchos.sh watchOS arm64 is actually arm64_32 2018-10-22 19:22:46 +02:00