On Thu, Jun 07, 2012 at 01:05:49PM +0200, Lukas Reichlin wrote: > On 07.06.2012, at 12:27, Olaf Till wrote: > > > Hi, > > > > recently there was a thread on the Octave Forge list, starting with > > > > http://sourceforge.net/mailarchive/forum.php?thread_name=6379301E-96D0-4AEF-BEEF-3DE7DD81A31F%40gmail.com&forum_name=octave-dev > > > > continued on the Octave maintainers list, starting with > > > > https://mailman.cae.wisc.edu/pipermail/octave-maintainers/2012-June/028555.html > > > > due to installation of a package depending on Lapack failing on Apple > > with a default Octave configuration. The reason is that mkoctfile does > > not understand the -framework switch. > > > > One conclusion was that passing the respective variables in > > environment variables to mkoctfile could solve this problem. > > > > I've made this change to optim/src/Makefile and recommend similar > > changes for all packages affected by this or a similar > > problem. Example: > > > > MKOCTFILE ?= mkoctfile > > LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS) > > BLAS_LIBS := $(shell $(MKOCTFILE) -p BLAS_LIBS) > > LFLAGS := $(shell $(MKOCTFILE) -p LFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) > > export LFLAGS > > > > or instead of the last line you could use a rule like > > > > %.oct: %.cc > > LFLAGS="$(LFLAGS)" $(MKOCTFILE) -s $< > > > > I could take a look at other Makefiles, if necessary (list taken from > > Marcos post: control, linear-algebra, octgpr, odepkg, optiminterp). > > > > Olaf > > Hi Olaf > > Please report if you have any improvements for the control makefile. Thanks! > > Lukas >
The attached short patch should do it in this case. Olaf -- public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net
Index: src/Makefile =================================================================== --- src/Makefile (revision 10577) +++ src/Makefile (working copy) @@ -3,6 +3,7 @@ LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS) BLAS_LIBS := $(shell $(MKOCTFILE) -p BLAS_LIBS) FLIBS := $(shell $(MKOCTFILE) -p FLIBS) +LFLAGS := $(shell $(MKOCTFILE) -p LFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) all: control_slicot_functions.oct \ is_real_scalar.oct \ @@ -28,8 +29,8 @@ # slicot functions control_slicot_functions.oct: control_slicot_functions.cc slicotlibrary.a - $(MKOCTFILE) control_slicot_functions.cc common.cc slicotlibrary.a \ - ${LAPACK_LIBS} ${BLAS_LIBS} ${FLIBS} + LFLAGS="$(LFLAGS)" \ + $(MKOCTFILE) control_slicot_functions.cc common.cc slicotlibrary.a # helpers is_real_scalar.oct: is_real_scalar.cc
signature.asc
Description: Digital signature
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev