Skip to content

Commit

Permalink
Enable threadsafe
Browse files Browse the repository at this point in the history
--enable-unsupported is necesssary for HDF5 to build with both
threadsafety and high level library enabled.

--with-pthreads form HDF5 docs and conda-forge

Thread safety flags copied from conda-forge hdf5-feedstock:
conda-forge/hdf5-feedstock@36304ea
  • Loading branch information
tomkooij committed Nov 6, 2019
1 parent 087b268 commit cfa5d3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library_builders.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ function build_hdf5 {
local short=$(echo $HDF5_VERSION | awk -F "." '{printf "%d.%d", $1, $2}')
fetch_unpack $hdf5_url/hdf5-$short/hdf5-$HDF5_VERSION/src/hdf5-$HDF5_VERSION.tar.gz
(cd hdf5-$HDF5_VERSION \
&& ./configure --with-szlib=$BUILD_PREFIX --prefix=$BUILD_PREFIX --enable-threadsafe \
&& ./configure --with-szlib=$BUILD_PREFIX --prefix=$BUILD_PREFIX \
--enable-threadsafe --enable-unsupported --with-pthread=yes \
&& make -j4 \
&& make install)
touch hdf5-stamp
Expand Down

0 comments on commit cfa5d3f

Please sign in to comment.