mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 22:40:01 -04:00
add mbedtls support and disable wolfssl
This commit is contained in:
parent
885e83d2eb
commit
8b53625743
7 changed files with 34 additions and 9 deletions
26
client/tools/mbedtls.sh
Executable file
26
client/tools/mbedtls.sh
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
|
||||
#compile mbedtls for use with emscripten
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
CORE_COUNT=$(nproc --all)
|
||||
PREFIX=$(realpath build/mbedtls-wasm)
|
||||
rm -rf $PREFIX
|
||||
mkdir -p $PREFIX
|
||||
|
||||
cd build
|
||||
rm -rf mbedtls
|
||||
git clone -b mbedtls-3.6.2 --recursive --depth=1 https://github.com/Mbed-TLS/mbedtls mbedtls
|
||||
cd mbedtls
|
||||
|
||||
emmake make CFLAGS="-Oz" no_test -j$CORE_COUNT
|
||||
make DESTDIR="$PREFIX" install
|
||||
|
||||
rm -rf $PREFIX/bin
|
||||
rm -rf $PREFIX/share
|
||||
rm -rf $PREFIX/lib/pkgconfig
|
||||
rm -rf $PREFIX/lib/*.la
|
||||
|
||||
cd ../../
|
Loading…
Add table
Add a link
Reference in a new issue