Skip to content

Commit

Permalink
[NetCDF] drop the c-flag -std=c99 and explicitly disable plugins (#5355)
Browse files Browse the repository at this point in the history
* drop c-flag -std=c99

* disable plugins
  • Loading branch information
Alexander-Barth authored Aug 24, 2022
1 parent 8daaced commit 661dce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions N/NetCDF/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ script = raw"""
cd $WORKSPACE/srcdir/netcdf-c-*
export CPPFLAGS="-I${includedir}"
export CFLAGS="-std=c99"
export LDFLAGS="-L${libdir}"
export LDFLAGS_MAKE="${LDFLAGS}"
CONFIGURE_OPTIONS=""
Expand All @@ -47,7 +46,7 @@ if [[ ${target} == *-mingw* ]]; then
# additional configure options from
# https://github.com/Unidata/netcdf-c/blob/5df5539576c5b2aa8f31d4b50c4f8258925589dd/.github/workflows/run_tests_win_mingw.yml#L38
CONFIGURE_OPTIONS="--disable-plugins --disable-byterange"
CONFIGURE_OPTIONS="--disable-byterange"
elif [[ "${target}" == *-apple-* ]]; then
# this file is referenced by hdf.h by not installed
touch ${includedir}/features.h
Expand All @@ -67,6 +66,7 @@ rm /workspace/destdir/lib/*.la
--enable-shared \
--disable-static \
--disable-dap-remote-tests \
--disable-plugins \
$CONFIGURE_OPTIONS
make LDFLAGS="${LDFLAGS_MAKE}" -j${nproc}
Expand Down

0 comments on commit 661dce2

Please sign in to comment.