19 lines
583 B
Bash
Executable File
19 lines
583 B
Bash
Executable File
cd boringssl/
|
|
if [ ! -d lib ]; then
|
|
mkdir lib && cd lib
|
|
ln -s ../build/ssl/libssl.so .
|
|
ln -s ../build/crypto/libcrypto.so .
|
|
cd ..
|
|
fi
|
|
cat include/openssl/opensslv.h | grep "OPENSSL_VERSION_NUMBER" &> /dev/null
|
|
if [ $? -ne 0 ]; then
|
|
echo "#if false
|
|
# define OPENSSL_VERSION_NUMBER 0x1010008fL
|
|
#endif" > include/openssl/opensslv.h
|
|
fi
|
|
cd build
|
|
sudo apt-get install golang-go
|
|
cmake .. -DOPENSSL_NO_ASM=ON -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE="Release" -DCMAKE_CXX_FLAGS="${CXX_FLAGS}" -DCMAKE_C_FLAGS="${C_FLAGS}" ${CMAKE_OPTIONS}
|
|
make ${CMAKE_MAKE_OPTIONS}
|
|
#sudo make install
|