df1c8d8297
GitOrigin-RevId: a05f88d5899de77fb15a0b9d476f09c7a388dc74
22 lines
576 B
Bash
Executable File
22 lines
576 B
Bash
Executable File
#!/bin/sh
|
|
|
|
OPENSSL=OpenSSL_1_1_0j
|
|
if [ ! -f $OPENSSL.tar.gz ]; then
|
|
echo "Download openssl"
|
|
wget https://github.com/openssl/openssl/archive/$OPENSSL.tar.gz
|
|
fi
|
|
rm -rf ./$OPENSSL
|
|
tar xzf $OPENSSL.tar.gz || exit 1
|
|
cd openssl-$OPENSSL
|
|
|
|
emconfigure ./Configure linux-generic32 no-shared
|
|
sed -i bak 's/CROSS_COMPILE=.*/CROSS_COMPILE=/g' Makefile
|
|
emmake make depend -s || exit 1
|
|
emmake make -s || exit 1
|
|
|
|
rm -rf ../build/crypto || exit 1
|
|
mkdir -p ../build/crypto/lib || exit 1
|
|
cp libcrypto.a libssl.a ../build/crypto/lib/ || exit 1
|
|
cp -r include ../build/crypto/ || exit 1
|
|
cd ..
|