Skip to content

Commit ebcc291

Browse files
committed
update
1 parent 18b07df commit ebcc291

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

config.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,24 @@ function run_tests {
3131
cp ../netcdf4-python/test/* .
3232
python run_all.py
3333
}
34+
35+
36+
function build_curl {
37+
if [ -e curl-stamp ]; then return; fi
38+
local flags="--prefix=$BUILD_PREFIX"
39+
if [ -n "$IS_OSX" ]; then
40+
flags="$flags --with-darwinssl"
41+
else # manylinux
42+
flags="$flags --with-ssl"
43+
build_openssl
44+
fi
45+
fetch_unpack https://curl.haxx.se/download/curl-${CURL_VERSION}.tar.gz
46+
export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig
47+
(cd curl-${CURL_VERSION} \
48+
&& if [ -z "$IS_OSX" ]; then \
49+
LIBS=-ldl ./configure $flags; else \
50+
./configure $flags; fi\
51+
&& make -j4 \
52+
&& make install)
53+
touch curl-stamp
54+
}

0 commit comments

Comments
 (0)