NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

[netcdfgroup] nc-config issues

Right now, nc-config doesn't give you the cppflags and ldflags for hdf5 (or any of the other dependencies), just netcdf. The following change fixes this.

--- nc-config.in.orig   2010-11-12 06:18:18.000000000 -0700
+++ nc-config.in        2010-11-12 06:27:47.000000000 -0700
@@ -14,9 +14,9 @@
 cc="@CC@"
 cxx="@CXX@"
 fc="@FC@"
-cflags=" -I${includedir}"
+cflags=" -I${includedir} @EXTERN_CPPFLAGS@"
 fflags="@FFLAGS@ @MOD_FLAG@${includedir}"
-libs="-L${libdir} @NC_LIBS@"
+libs="-L${libdir} @NC_LIBS@ @EXTERN_LDFLAGS@"
 flibs="-L${libdir} @NC_FLIBS@"
 has_dap="@HAS_DAP@"
 has_nc2="@HAS_NC2@"


-Jeff



  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: