File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,26 @@ function pip_opts {
4040 fi
4141}
4242
43+ function build_curl {
44+ if [ -e curl-stamp ]; then return ; fi
45+ local flags=" --prefix=$BUILD_PREFIX "
46+ if [ -n " $IS_MACOS " ]; then
47+ flags=" $flags --with-darwinssl"
48+ else # manylinux
49+ flags=" $flags --with-ssl"
50+ build_openssl
51+ fi
52+ flags=" $flags --without-zstd"
53+ fetch_unpack https://curl.haxx.se/download/curl-${CURL_VERSION} .tar.gz
54+ (cd curl-${CURL_VERSION} \
55+ && if [ -z " $IS_MACOS " ]; then \
56+ LIBS=-ldl ./configure $flags ; else \
57+ ./configure $flags ; fi\
58+ && make -j4 \
59+ && make install)
60+ touch curl-stamp
61+ }
62+
4363# function build_curl {
4464# if [ -e curl-stamp ]; then return; fi
4565# local flags="--prefix=$BUILD_PREFIX"
You can’t perform that action at this time.
0 commit comments