Skip to content

Commit 387ac0c

Browse files
authored
Fix build for HDF5 with Linux on ARM64 (pull #1553)
1 parent 2d25547 commit 387ac0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hdf5/cppbuild.sh

+4
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ case $PLATFORM in
103103
./configure --prefix=$INSTALL_PATH CC="gcc -m64" CXX="g++ -m64" --enable-cxx --enable-java
104104
make -j $MAKEJ
105105
make install-strip
106+
elif [[ "$MACHINE_TYPE" =~ aarch64 ]]; then
107+
./configure --prefix=$INSTALL_PATH CC="gcc" CXX="g++" --enable-cxx --enable-java
108+
make -j $MAKEJ
109+
make install-strip
106110
else
107111
echo "Not native arm so assume cross compiling"
108112
patch -Np1 < ../../../hdf5-linux-arm64.patch || true

0 commit comments

Comments
 (0)