Juan 08/03/2016: add HDF_CONF='-std=c99' option for gcc > 5.X for pb in hdf compilation
authorJuan Escobar <juan.escobar@aero.obs-mip.fr>
Tue, 8 Mar 2016 09:51:30 +0000 (09:51 +0000)
committerPhilippe WAUTELET <philippe.wautelet@aero.obs-mip.fr>
Thu, 19 May 2016 14:44:49 +0000 (16:44 +0200)
src/Makefile
src/Rules.LXgfortran.mk

index a89aa69..ae3e72d 100644 (file)
@@ -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 :
index 0641238..7a01c28 100644 (file)
@@ -86,6 +86,10 @@ endif
 #
 TARGET_GRIBEX=linux
 CNAME_GRIBEX=_gfortran
+#
+# Netcdf/HDF5 flags
+#
+HDF_CONF= CFLAGS=-std=c99
 ##########################################################
 #                                                        #
 # Source of MESONH PACKAGE  Distribution                 #