2018-08-08 17:18:57 -04:00
|
|
|
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
|
2018-08-08 17:28:19 -04:00
|
|
|
# define OPENSSL_VERSION_NUMBER 0x1010008fL
|
|
|
|
#endif" > include/openssl/opensslv.h
|
2018-08-08 17:18:57 -04:00
|
|
|
fi
|
|
|
|
cd build
|
2018-08-08 10:21:32 -04:00
|
|
|
sudo apt-get install golang-go
|
|
|
|
cmake .. -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE="Release"
|
|
|
|
make -j 12
|
2018-08-08 15:51:41 -04:00
|
|
|
#sudo make install
|