Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ source h5py-wheels/config.sh

function build_libs {
build_hdf5
#build_curl
build_curl
# use built-in curl on OSX
if [ -z "$IS_OSX" ]; then
build_curl
else
touch curl-stamp
fi
#if [ -z "$IS_OSX" ]; then
# build_curl
#else
# touch curl-stamp
#fi
if [ -z "$IS_OSX" ] && [ $MB_ML_VER -eq 1 ]; then
export CFLAGS="-std=gnu99 -Wl,-strip-all"
fi
Expand All @@ -38,3 +38,17 @@ function run_tests {
python run_all.py
}

function build_curl {
if [ -e curl-stamp ]; then return; fi
local flags="--prefix=$BUILD_PREFIX -with-ssl=$BUILD_PREFIX"
build_openssl
fetch_unpack https://curl.haxx.se/download/curl-${CURL_VERSION}.tar.gz
(cd curl-${CURL_VERSION} \
&& if [ -z "$IS_OSX" ]; then \
LIBS=-ldl ./configure $flags; else \
./configure $flags; fi\
&& make -j4 \
&& make install)
touch curl-stamp
}