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
|
2018-08-09 13:43:18 -04:00
|
|
|
cat include/openssl/opensslv.h | grep "OPENSSL_VERSION_NUMBER" &> /dev/null
|
2018-08-08 17:18:57 -04:00
|
|
|
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
|
2019-03-17 17:55:36 -04:00
|
|
|
cmake .. -D -DOPENSSL_NO_ASM=ON -DBUILD_SHARED_LIBS=ON -DCMAKE_CXX_FLAGS="${CXX_FLAGS} -fPIC" -DCMAKE_C_FLAGS="${C_FLAGS} -fPIC" -DCMAKE_BUILD_TYPE=Release ${CMAKE_OPTIONS} -DCMAKE_VERBOSE_MAKEFILE=1
|
2018-08-09 06:38:44 -04:00
|
|
|
make ${CMAKE_MAKE_OPTIONS}
|
2018-11-17 11:40:07 -05:00
|
|
|
#sudo make install
|