Skip to content

Commit eb4ccfd

Browse files
author
Jeff Whitaker
authored
Update config.sh
1 parent 6267a91 commit eb4ccfd

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

config.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,27 @@ function build_hdf5 {
122122
patch -p0 < osx_cross_fortran_src_makefile.patch
123123
patch -p0 < osx_cross_hl_fortran_src_makefile.patch
124124
patch -p0 < osx_cross_src_makefile.patch
125+
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$BUILD_PREFIX/lib
126+
./configure --with-szlib=$BUILD_PREFIX --prefix=$BUILD_PREFIX --enable-threadsafe --enable-unsupported --with-pthread=yes --enable-build-mode=production --host=aarch64-apple-darwin --enable-tests=no
127+
mkdir -p native-build/bin
128+
pushd native-build/bin
129+
CFLAGS= $CC ../../src/H5detect.c -I ../../src/ -o H5detect
130+
CFLAGS= $CC ../../src/H5make_libsettings.c -I ../../src/ -o H5make_libsettings
125131
popd
126-
fi
127-
132+
export PATH=$(pwd)/native-build/bin:$PAT
133+
make -j4
134+
make install
135+
popd
136+
touch hdf5-stamp
137+
else
128138
(cd hdf5-$HDF5_VERSION \
129139
&& export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$BUILD_PREFIX/lib \
130140
&& ./configure --with-szlib=$BUILD_PREFIX --prefix=$BUILD_PREFIX \
131141
--enable-threadsafe --enable-unsupported --with-pthread=yes \
132142
&& make -j4 \
133143
&& make install)
134144
touch hdf5-stamp
145+
fi
135146
}
136147

137148
function build_libs {

0 commit comments

Comments
 (0)