Skip to content

Commit

Permalink
io-libs/netcdf: use OHPC CFLAGS
Browse files Browse the repository at this point in the history
netcdf was not using the OHPC CFLAGS. This changes netcdf to use them.

Signed-off-by: Adrian Reber <[email protected]>
  • Loading branch information
adrianreber committed Jun 20, 2023
1 parent 35cb103 commit fa72cea
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions components/io-libs/netcdf/SPECS/netcdf.spec
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ module load hdf5
%endif
export CPPFLAGS="-I$HDF5_INC"
export LDFLAGS="-L$HDF5_LIB"
export CFLAGS="-L$HDF5_LIB -I$HDF5_INC ${RPM_OPT_FLAGS}"
export CFLAGS="-L$HDF5_LIB -I$HDF5_INC ${CFLAGS}"

./configure --prefix=%{install_path} \
--enable-shared \
Expand All @@ -112,12 +112,7 @@ export CFLAGS="-L$HDF5_LIB -I$HDF5_INC ${RPM_OPT_FLAGS}"
--disable-doxygen \
--disable-static || { cat config.log && exit 1; }

# [email protected] (5/17/18) - switching to serial make to avoid
# problems. Others also reporting error with parallel build.
#
# https://github.com/Unidata/netcdf-c/issues/896
make
#make %{?_smp_mflags}
make %{?_smp_mflags}

%install
# OpenHPC compiler/mpi designation
Expand Down

0 comments on commit fa72cea

Please sign in to comment.