bundle openssl...

This commit is contained in:
simon 2020-02-01 20:49:49 -05:00
parent 9ef1f3781d
commit a143cc4fcf
2 changed files with 14 additions and 4 deletions

View File

@ -89,8 +89,6 @@ target_compile_options(sist2
-fomit-frame-pointer
)
target_link_directories(sist2 PRIVATE /usr/local/lib)
TARGET_LINK_LIBRARIES(
sist2
@ -135,7 +133,9 @@ TARGET_LINK_LIBRARIES(
# curl
${PROJECT_SOURCE_DIR}/lib/libcurl.a
ssl crypto
${PROJECT_SOURCE_DIR}/lib/libcrypto.a
${PROJECT_SOURCE_DIR}/lib/libssl.a
dl
)
add_custom_target(

View File

@ -106,13 +106,23 @@ make -j $THREADS
cd ..
mv libpng/.libs/libpng16.a .
# openssl...
git clone --depth 1 -b OpenSSL_1_1_0-stable https://github.com/openssl/openssl
cd openssl
./config --prefix=$(pwd)/../ssl
make depend
make -j $THREADS
make install
cd ..
mv ./openssl/libcrypto.a ./openssl/libssl.a .
# curl
wget -nc https://curl.haxx.se/download/curl-7.68.0.tar.gz
tar -xzf curl-7.68.0.tar.gz
cd curl-7.68.0
./configure --disable-ldap --disable-ldaps --without-librtmp --disable-rtsp --disable-crypto-auth \
--disable-smtp --without-libidn2 --without-nghttp2 --without-brotli --enable-static --disable-shared \
--without-libpsl
--without-libpsl --with-ssl=$(pwd)/../ssl
make -j $THREADS
cd ..
mv curl-7.68.0/lib/.libs/libcurl.a .