due to change on 3.5.x  mkoctfile the dependency on LAPACK
is now explicitly needed on platforms not accepting undefined symbols
(cygwin, mingw, Mac OS)

attached patch using the more standard

  LAPACK_LIBS := $(shell mkoctfile -p LAPACK_LIBS)
  FLIBS := $(shell mkoctfile -p FLIBS)

Tested on cygwin.

After the patch there are still some warnings

warning: /home/marco/octave/odepkg-0.8.0/odebwe.m: possible Matlab-style short-circuit operator at line 365, column 17 warning: /home/marco/octave/odepkg-0.8.0/odepkg_examples_ode.m: possible Matlab-style short-circuit operator at line 44, column 23
warning: gen_doc_cache: unusable help text found in file 'dldsolver'


Regards
Marco
--- odepkg_old/src/Makefile     2011-04-08 22:11:10.000000000 +0200
+++ odepkg/src/Makefile 2011-12-31 09:48:16.175485500 +0100
@@ -20,6 +20,9 @@
   MKF77FILE = FFLAGS="$(FFLAGS)" $(MKOCTFILE)
 endif
 
+LAPACK_LIBS := $(shell mkoctfile -p LAPACK_LIBS) 
+FLIBS := $(shell mkoctfile -p FLIBS) 
+
 EXTERNALDIRS  = hairer cash daskr
 EXTERNALPACKS = $(patsubst %, %.tgz,  $(EXTERNALDIRS))
 EXTERNALDIFFS = $(patsubst %, %.diff, $(EXTERNALDIRS))
@@ -44,7 +47,8 @@
 all : $(EXTERNALDIRS) $(SOLVEROCTFILE)
 
 $(SOLVEROCTFILE) : $(EXTERNALDIRS) $(SOLVEROBJECTS)
-       $(MKOCTFILE) $(SOLVEROBJECTS) -o $(SOLVEROCTFILE)
+       $(MKOCTFILE) $(SOLVEROBJECTS) -o $(SOLVEROCTFILE) \
+        $(LAPACK_LIBS) $(FLIBS)
 
 install :
        @$(INSTALL) -d $(DESTDIR)$(MPATH)/odepkg
------------------------------------------------------------------------------
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

Reply via email to