mirror of
https://github.com/simon987/sist2.git
synced 2025-04-19 18:26:43 +00:00
bundle openssl...
This commit is contained in:
parent
9ef1f3781d
commit
a143cc4fcf
@ -89,8 +89,6 @@ target_compile_options(sist2
|
|||||||
-fomit-frame-pointer
|
-fomit-frame-pointer
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_directories(sist2 PRIVATE /usr/local/lib)
|
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES(
|
TARGET_LINK_LIBRARIES(
|
||||||
sist2
|
sist2
|
||||||
|
|
||||||
@ -135,7 +133,9 @@ TARGET_LINK_LIBRARIES(
|
|||||||
|
|
||||||
# curl
|
# curl
|
||||||
${PROJECT_SOURCE_DIR}/lib/libcurl.a
|
${PROJECT_SOURCE_DIR}/lib/libcurl.a
|
||||||
ssl crypto
|
${PROJECT_SOURCE_DIR}/lib/libcrypto.a
|
||||||
|
${PROJECT_SOURCE_DIR}/lib/libssl.a
|
||||||
|
dl
|
||||||
)
|
)
|
||||||
|
|
||||||
add_custom_target(
|
add_custom_target(
|
||||||
|
@ -106,13 +106,23 @@ make -j $THREADS
|
|||||||
cd ..
|
cd ..
|
||||||
mv libpng/.libs/libpng16.a .
|
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
|
# curl
|
||||||
wget -nc https://curl.haxx.se/download/curl-7.68.0.tar.gz
|
wget -nc https://curl.haxx.se/download/curl-7.68.0.tar.gz
|
||||||
tar -xzf curl-7.68.0.tar.gz
|
tar -xzf curl-7.68.0.tar.gz
|
||||||
cd curl-7.68.0
|
cd curl-7.68.0
|
||||||
./configure --disable-ldap --disable-ldaps --without-librtmp --disable-rtsp --disable-crypto-auth \
|
./configure --disable-ldap --disable-ldaps --without-librtmp --disable-rtsp --disable-crypto-auth \
|
||||||
--disable-smtp --without-libidn2 --without-nghttp2 --without-brotli --enable-static --disable-shared \
|
--disable-smtp --without-libidn2 --without-nghttp2 --without-brotli --enable-static --disable-shared \
|
||||||
--without-libpsl
|
--without-libpsl --with-ssl=$(pwd)/../ssl
|
||||||
make -j $THREADS
|
make -j $THREADS
|
||||||
cd ..
|
cd ..
|
||||||
mv curl-7.68.0/lib/.libs/libcurl.a .
|
mv curl-7.68.0/lib/.libs/libcurl.a .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user