File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -122,16 +122,27 @@ function build_hdf5 {
122
122
patch -p0 < osx_cross_fortran_src_makefile.patch
123
123
patch -p0 < osx_cross_hl_fortran_src_makefile.patch
124
124
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
125
131
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
128
138
(cd hdf5-$HDF5_VERSION \
129
139
&& export LD_LIBRARY_PATH=$LD_LIBRARY_PATH :$BUILD_PREFIX /lib \
130
140
&& ./configure --with-szlib=$BUILD_PREFIX --prefix=$BUILD_PREFIX \
131
141
--enable-threadsafe --enable-unsupported --with-pthread=yes \
132
142
&& make -j4 \
133
143
&& make install)
134
144
touch hdf5-stamp
145
+ fi
135
146
}
136
147
137
148
function build_libs {
You can’t perform that action at this time.
0 commit comments