Skip to content
Snippets Groups Projects
Commit aaa6f232 authored by ESCOBAR MUNOZ Juan's avatar ESCOBAR MUNOZ Juan Committed by WAUTELET Philippe
Browse files

Juan 08/03/2016: add HDF_CONF='-std=c99' option for gcc > 5.X for pb in hdf compilation

parent 207c816a
No related branches found
No related tags found
No related merge requests found
......@@ -332,9 +332,9 @@ ifeq "$(VER_CDF)" "CDFAUTO"
cdf : $(CDF_INC)
$(CDF_INC) :
cd ${DIR_HDF} && ./configure --disable-shared --prefix=${CDF_PATH} --libdir=${CDF_PATH}/lib64 --with-zlib=no \
FC="$(FC)" FCFLAGS="$(OPT_BASE)" CPPFLAGS="-DpgiFortran" && make && make install
FC="$(FC)" FCFLAGS="$(OPT_BASE)" CPPFLAGS="-DpgiFortran" ${HDF_CONF} && make && make install
cd ${DIR_CDF} && ./configure --disable-shared --prefix=${CDF_PATH} --libdir=${CDF_PATH}/lib64 --disable-cxx --disable-f90 --disable-dap \
FC="$(FC)" FCFLAGS="$(OPT_BASE)" CPPFLAGS="-DpgiFortran ${INC_NETCDF}" LDFLAGS=" -L${CDF_PATH}/lib64" && make && make install
FC="$(FC)" FCFLAGS="$(OPT_BASE)" CPPFLAGS="-DpgiFortran ${INC_NETCDF}" ${CDF_CONF} LDFLAGS=" -L${CDF_PATH}/lib64" && make && make install
cleanmaster : cleancdf
cleancdf :
......
......@@ -86,6 +86,10 @@ endif
#
TARGET_GRIBEX=linux
CNAME_GRIBEX=_gfortran
#
# Netcdf/HDF5 flags
#
HDF_CONF= CFLAGS=-std=c99
##########################################################
# #
# Source of MESONH PACKAGE Distribution #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment