From 374125dde261079b3210ba05fedfbc5bd5f5b7a4 Mon Sep 17 00:00:00 2001 From: jess Date: Mon, 15 Jul 2019 06:46:53 -0700 Subject: [PATCH 1/2] Add Open Collective contributors to readme --- README.markdown | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.markdown b/README.markdown index 412693d3..c9521026 100644 --- a/README.markdown +++ b/README.markdown @@ -42,6 +42,30 @@ A mailing-list is available to discuss libsodium. In order to join, just send a random mail to `sodium-subscribe` {at} `pureftpd` {dot} `org`. +## Contributors + +### Code Contributors + +This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. + + + +### Financial Contributors + +Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/libsodium/contribute)] + +#### Individuals + + + +#### Organizations + +Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/libsodium/contribute)] + + + + + ## License [ISC license](https://en.wikipedia.org/wiki/ISC_license). From fdfca240d68711a0ba345085a3f7d96830926760 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 20 Jul 2019 17:29:44 +0200 Subject: [PATCH 2/2] Rename WASI_SYSROOT to WASI_LIBC and check both the old and new dirs --- dist-build/wasm32-wasi.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/dist-build/wasm32-wasi.sh b/dist-build/wasm32-wasi.sh index 88b18430..c6ae3ac7 100755 --- a/dist-build/wasm32-wasi.sh +++ b/dist-build/wasm32-wasi.sh @@ -1,7 +1,16 @@ #! /bin/sh -if [ -z "$WASI_SYSROOT" ]; then - export WASI_SYSROOT="/opt/wasi-libc" +if [ -z "$WASI_LIBC" ]; then + for path in /opt/wasi-libc /opt/wasi-sysroot; do + if [ -d "$path" ]; then + export WASI_LIBC="$path" + break + fi + done +fi +if [ -z "$WASI_LIBC" ]; then + echo "Set WASI_LIBC to the path to the WASI libc sysroot" >&2 + exit 1 fi export PATH="/usr/local/opt/llvm/bin:$PATH" @@ -11,7 +20,7 @@ export PREFIX="$(pwd)/libsodium-wasm32-wasi" mkdir -p $PREFIX || exit 1 export CC="clang" -export CFLAGS="-DED25519_NONDETERMINISTIC=1 --target=wasm32-wasi --sysroot=${WASI_SYSROOT} -O2" +export CFLAGS="-DED25519_NONDETERMINISTIC=1 --target=wasm32-wasi --sysroot=${WASI_LIBC} -O2" export LDFLAGS="-s -Wl,--no-threads" export NM="llvm-nm" export AR="llvm-ar" @@ -35,7 +44,7 @@ else fi ./configure ${LIBSODIUM_ENABLE_MINIMAL_FLAG} \ - --prefix="$PREFIX" --with-sysroot="$WASI_SYSROOT" \ + --prefix="$PREFIX" --with-sysroot="$WASI_LIBC" \ --host=wasm32-wasi \ --disable-ssp --disable-shared || exit 1