1. Disable zlib _explictly_ when building libcurl in remote attestaion demo. The reason for this is that zlib may be implictly linked by the build system of libcurl but not the zlib library is not copied into the Occlum FS image. 2. Use `make -j$(nproc)` 3. Fix typos
31 lines
620 B
Bash
Executable File
31 lines
620 B
Bash
Executable File
#!/bin/sh
|
|
#copyright@antfinancial:adopted from a script written by geding
|
|
|
|
git clone http://github.com/openssl/openssl
|
|
cd openssl
|
|
git checkout tags/OpenSSL_1_1_1
|
|
CC=occlum-gcc ./config \
|
|
--prefix=/usr/local/occlum/x86_64-linux-musl \
|
|
--openssldir=/usr/local/occlum/x86_64-linux-musl/ssl \
|
|
--with-rand-seed=rdcpu \
|
|
no-async no-zlib
|
|
if [ $? -ne 0 ]
|
|
then
|
|
echo "./config command failed."
|
|
exit 1
|
|
fi
|
|
make -j$(nproc)
|
|
if [ $? -ne 0 ]
|
|
then
|
|
echo "make command failed."
|
|
exit 1
|
|
fi
|
|
make install
|
|
if [ $? -ne 0 ]
|
|
then
|
|
echo "make install command failed."
|
|
exit 1
|
|
fi
|
|
|
|
echo "build and install openssl success!"
|