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)

patch attached using the more standard

  LAPACK_LIBS := $(shell mkoctfile -p LAPACK_LIBS)

Tested on cygwin.

Regards
Marco
--- linear-algebra_old/src/Makefile     2011-11-02 19:36:05.000000000 +0100
+++ linear-algebra/src/Makefile 2011-12-30 23:16:09.084842200 +0100
@@ -4,6 +4,8 @@
 MKOCTFILE = mkoctfile
 endif
 
+LAPACK_LIBS := $(shell mkoctfile -p LAPACK_LIBS)
+
 DEFINES = -DHAVE_CONFIG_H -Wall
 GSVD_OBJECTS = gsvd.o dbleGSVD.o CmplxGSVD.o 
 GSVD_TARGET = gsvd.oct
@@ -23,7 +25,7 @@
 all : $(TARGETS) pgmres.oct
 
 $(GSVD_TARGET) : $(GSVD_DEPENDS) $(GSVD_OBJECTS)
-       $(MKOCTFILE) $(DEFINES) $(GSVD_OBJECTS) -o $@
+       $(MKOCTFILE) $(DEFINES) $(GSVD_OBJECTS) -o $@ ${LAPACK_LIBS}
 
 $(GSVD_TEST) : $(GSVD_TARGET)
 
@@ -44,7 +46,7 @@
        $(MKOCTFILE) $(DEFINES) $< -o $@
 
 %.oct: %.cc
-       mkoctfile $(DEFINES) $< -o $@
+       mkoctfile $(DEFINES) $< -o $@ ${LAPACK_LIBS}
 
 .phony: test
 test: $(GSVD_TEST)
------------------------------------------------------------------------------
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