Skip to content

Commit

Permalink
fix openssl install dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
pmp-p committed Oct 9, 2024
1 parent 292ca5d commit 6a8f557
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sources.wasm/1000-openssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
. scripts/emsdk-fetch.sh

cd ${ROOT}/src

export OPENSSL="openssl-1.1.1w"
export URL_OPENSSL=https://github.com/openssl/openssl/releases/download/OpenSSL_1_1_1w/openssl-1.1.1w.tar.gz

Expand Down Expand Up @@ -68,11 +69,12 @@ else

sed -i 's|^CROSS_COMPILE.*$|CROSS_COMPILE=|g' Makefile
emmake make build_generated libssl.a libcrypto.a
cp -r include/openssl "$PREFIX/include"
mkdir -p $PREFIX/include $PREFIX/lib/
cp -r include/openssl $PREFIX/include/
ln -s $PREFIX/include/openssl $EMSDK/upstream/emscripten/cache/sysroot/include/
cp libcrypto.a libssl.a $PREFIX/lib/
cp libcrypto.a libssl.a $EMSDK/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/pic/
popd
[ -f $PREFIX/lib/libssl.a ] || exit 76
[ -f $PREFIX/lib/libssl.a ] || exit 78
fi

0 comments on commit 6a8f557

Please sign in to comment.