export PATH=/path/to/GNU/bin: $PATH export LD_LIBRARY_PATH=/path/to/GNU/lib64: $LD_LIBRARY_PATH
tar -xvf hdf5-1.10.6.tar.gz
cd hdf5-1.10.6
mkdir -p /path/to/HDF5
./configure --prefix=/path/to/HDF5 --build=aarch64-unknown-linux-gnu --enable-fortran --enable-static=yes --enable-shared CC=gcc CXX=g++ FC=gfortran F77=gfortran CFLAGS=-fPIC
make -j 16 make install