to build octcdf on cygwin with octave-3.9.51+ I noticed that LDFLAGS is incorrectly passed as LIBS to mkoctfile.
Attached patch solve the issue and I presume it works also for the other platforms.
In addition the package is using a future obsolete command and it should updatedwarning: dispatch is obsolete and will be removed from a future version of Octave; please use classes instead
Regards Marco
--- octcdf_old/src/Makefile 2009-02-19 21:58:12.000000000 +0100 +++ octcdf/src/Makefile 2011-12-31 17:18:09.215135100 +0100 @@ -61,7 +61,7 @@ ov-netcdf.o ov-ncfile.o ov-ncvar.o ov-ncatt.o ov-ncdim.o: ov-netcdf.h ov-ncfile.h ov-ncvar.h ov-ncatt.h ov-ncdim.h $(NCTARGET) : $(OBJECTS) - LIBS="$(MOLIBS)" $(MKOCTFILE) -o $@ $(MOFLAGS) $(OBJECTS) + $(MKOCTFILE) -o $@ $(MOFLAGS) $(OBJECTS) $(MOLIBS) %.o:%.cc $(MKOCTFILE) -c $< $(MOFLAGS) $(DEFINES) --- octcdf_old/src/configure.base 2009-10-06 11:21:04.000000000 +0200 +++ octcdf/src/configure.base 2011-12-31 18:40:18.085050400 +0100 @@ -302,7 +302,7 @@ AC_SUBST(OCTCDF_LIBS) AC_SUBST(OCTCDF_CFLAGS) -OCTCDF_LIBS="$LDFLAGS" +OCTCDF_LIBS="" OCTCDF_CFLAGS="$CPPFLAGS" dnl first checking for nc-config, then nc-dap
------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev