updated buildfiles

This commit is contained in:
WolverinDEV
2018-08-08 21:18:57 +00:00
parent d1bd700bae
commit f302504dea
8 changed files with 21 additions and 8 deletions
+14 -1
View File
@@ -1,4 +1,17 @@
cd boringssl/build/
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 .. -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE="Release"
make -j 12
+1 -1
View File
@@ -1,4 +1,4 @@
cd mysqlconnector/build
cmake .. -DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++ -I../../boringssl/include/"-DWITH_JDBC=ON
cmake .. -DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++ -I../../boringssl/include/" -DWITH_JDBC=ON -DWITH_SSL="`pwd`/../../boringssl/" -DOPENSSL_ROOT_DIR="`pwd`/../../boringssl/"
make -j 12
sudo make install