morningman closed pull request #496: Build libcurl with openssl
URL: https://github.com/apache/incubator-doris/pull/496
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/thirdparty/build-thirdparty.sh b/thirdparty/build-thirdparty.sh
index 77cb8558..b02a20ee 100755
--- a/thirdparty/build-thirdparty.sh
+++ b/thirdparty/build-thirdparty.sh
@@ -179,6 +179,20 @@ build_openssl() {
ln -s $TP_INSTALL_DIR/lib64/libcrypto.a
$TP_INSTALL_DIR/lib/libcrypto.a && \
ln -s $TP_INSTALL_DIR/lib64/libssl.a $TP_INSTALL_DIR/lib/libssl.a
fi
+ # NOTE(zc): remove this dynamic library files to make libcurl static link.
+ # If I don't remove this files, I don't known how to make libcurl link
static library
+ if [ -f $TP_INSTALL_DIR/lib64/libcrypto.so ]; then
+ rm -rf $TP_INSTALL_DIR/lib64/libcrypto.so*
+ fi
+ if [ -f $TP_INSTALL_DIR/lib64/libssl.so ]; then
+ rm -rf $TP_INSTALL_DIR/lib64/libssl.so*
+ fi
+ if [ -f $TP_INSTALL_DIR/lib/libcrypto.so ]; then
+ rm -rf $TP_INSTALL_DIR/lib/libcrypto.so*
+ fi
+ if [ -f $TP_INSTALL_DIR/lib/libssl.so ]; then
+ rm -rf $TP_INSTALL_DIR/lib/libssl.so*
+ fi
}
# thrift
@@ -377,10 +391,10 @@ build_curl() {
cd $TP_SOURCE_DIR/$CURL_SOURCE
CPPFLAGS="-I${TP_INCLUDE_DIR}" \
- LDFLAGS="-L${TP_LIB_DIR}" \
+ LDFLAGS="-L${TP_LIB_DIR}" LIBS="-lcrypto -lssl -lcrypto -ldl" \
CFLAGS="-fPIC" \
./configure --prefix=$TP_INSTALL_DIR --disable-shared --enable-static \
- --without-ssl --without-libidn2 --disable-ldap
+ --with-ssl=${TP_INSTALL_DIR} --without-libidn2 --disable-ldap --enable-ipv6
make -j$PARALLEL && make install
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]