working wolfssl

This commit is contained in:
ading2210 2024-03-19 15:39:22 -04:00
parent 8ae1907f50
commit b04d4427ca
2 changed files with 5 additions and 5 deletions

View file

@ -13,7 +13,7 @@ BROTLI_PREFIX=$(realpath build/brotli-wasm)
NGHTTP2_PREFIX=$(realpath build/nghttp2-wasm)
if [ ! -d $WOLFSSL_PREFIX ]; then
tools/openssl.sh
tools/wolfssl.sh
fi
if [ ! -d $CJSON_PREFIX ]; then
tools/cjson.sh

View file

@ -12,17 +12,17 @@ mkdir -p $PREFIX
cd build
rm -rf wolfssl
git clone -b master --depth=1 https://github.com/wolfSSL/wolfssl wolfssl
git clone -b v5.6.6-stable --depth=1 https://github.com/wolfSSL/wolfssl wolfssl
cd wolfssl
autoreconf -fi
CFLAGS="-Oz -DSP_WORD_SIZE=32" emconfigure ./configure --prefix=$PREFIX --enable-curl --enable-static --disable-shared --host=i686-linux --disable-examples # --enable-cryptonly
CFLAGS="-Oz -DSP_WORD_SIZE=32" emconfigure ./configure --prefix=$PREFIX --enable-curl --enable-static --disable-shared --host=i686-linux --disable-examples --disable-asm --enable-sni --enable-alpn --enable-truncatedhmac --enable-oldtls --enable-tlsv12 --enable-all-crypto --disable-asyncthreads --disable-threadlocal --enable-tlsx
emmake make -j$CORE_COUNT
make install
rm -rf $PREFIX/bin
rm -rf $PREFIX/share
#rm -rf $PREFIX/lib/pkgconfig
#rm -rf $PREFIX/lib/*.la
rm -rf $PREFIX/lib/pkgconfig
rm -rf $PREFIX/lib/*.la
cd ../../