17 lines
766 B
Bash
Executable File
17 lines
766 B
Bash
Executable File
cd mysqlconnector
|
|
HEADER=$(cat cdk/foundation/connection_openssl.cc)
|
|
if ! [ "${HEADER:0:34}" == "#if !defined(SSL_ERROR_WANT_ASYNC)" ]; then
|
|
echo "Creating new one!"
|
|
echo "#if !defined(SSL_ERROR_WANT_ASYNC)
|
|
#define SSL_ERROR_WANT_ASYNC 0xFFEEDDCC
|
|
#endif
|
|
#if !defined(SSL_ERROR_WANT_ASYNC_JOB)
|
|
#define SSL_ERROR_WANT_ASYNC_JOB 0xFFEECCDD
|
|
#endif
|
|
`cat cdk/foundation/connection_openssl.cc`" > cdk/foundation/connection_openssl.cc
|
|
fi
|
|
cd build
|
|
cmake .. -DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++ -I../../boringssl/include/ ${CXX_FLAGS}" -DWITH_JDBC=OFF -DWITH_SSL="`pwd`/../../boringssl/" -DOPENSSL_ROOT_DIR="`pwd`/../../boringssl/" -DCMAKE_C_FLAGS="${C_FLAGS}" -DCMAKE_BUILD_TYPE=RelWithDebInfo ${CMAKE_OPTIONS}
|
|
make ${CMAKE_MAKE_OPTIONS}
|
|
sudo make install
|