Skip to content

Commit a43767b

Browse files
committed
2 parents 33a6982 + 36b2c42 commit a43767b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

config.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export NO_CDL=1
88
# Compile libs for macOS 10.9 or later
99
export MACOSX_DEPLOYMENT_TARGET="10.9"
1010
export NETCDF_VERSION="4.9.0"
11-
export HDF5_VERSION="1.12.1"
11+
export HDF5_VERSION="1.12.2"
1212
# old openssl, since building new version requires perl 5.10.0
1313
export OPENSSL_ROOT=openssl-1.0.2u
1414
export OPENSSL_HASH=ecd0c6ffb493dd06707d38b14bb4d8c2288bb7033735606569d8f90f89669d16
@@ -116,8 +116,9 @@ function build_netcdf {
116116
# && make install \
117117
# && ls -l $HDF5_PLUGIN_PATH )
118118
# autotools build
119-
if [[ ! -z "IS_OSX" ]]; then
120-
if [[ ! -z "IS_OSX" && "$PLAT" = "arm64" ]] && [[ "$CROSS_COMPILING" = "1" ]]; then
119+
if [ -n "$IS_MACOS" ]; then
120+
#if [[ ! -z "IS_OSX" && "$PLAT" = "arm64" ]] && [[ "$CROSS_COMPILING" = "1" ]]; then
121+
if [[ "$PLAT" = "arm64" ]] && [[ "$CROSS_COMPILING" = "1" ]]; then
121122
(cd netcdf-c-${NETCDF_VERSION} \
122123
&& ./configure --prefix=$BUILD_PREFIX --enable-netcdf-4 --enable-shared --enable-dap \
123124
&& make -j4 \

0 commit comments

Comments
 (0)