octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnulib and automake


From: Benjamin Lindner
Subject: Re: gnulib and automake
Date: Sat, 31 Oct 2009 14:11:55 +0100
User-agent: Thunderbird 2.0.0.22 (Windows/20090605)

Benjamin Lindner wrote:

From what I saw until now, if I patch libtool as above and we get the dependency libraries for libcruft (possibly also for liboctave and liboctinterp?) right, then it should work.
I'm curious how the .oct creation will behave.


An update:

Using the following patch for the generated libtool

--- .build_mingw32_octave-tip-automake-ref-4_gcc-4.4.0-dw2/libtool 2009-10-31 11:08:08 +0100 +++ .build_mingw32_octave-tip-automake-4_gcc-4.4.0-dw2/libtool 2009-10-31 11:39:24 +0100
@@ -7744,7 +7744,7 @@
        if test "$allow_undefined" = yes; then
          if test "$allow_undefined_flag" = unsupported; then
func_warning "undefined symbols not allowed in $host shared libraries"
-           build_libtool_libs=no
+           build_libtool_libs=yes
            build_old_libs=yes
          fi
        else


and the following change on octave's makefile sources

diff -r 5382a2ab87e7 libcruft/Makefile.am
--- a/libcruft/Makefile.am      Fri Oct 30 11:10:14 2009 -0400
+++ b/libcruft/Makefile.am      Sat Oct 31 14:08:00 2009 +0100
@@ -31,6 +31,8 @@

 libcruft_la_LDFLAGS = -release $(version)

+libcruft_la_LIBADD = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
+
 octinclude_HEADERS =

 EXTRA_DIST = ChangeLog STOP.patch mkf77def.in
diff -r 5382a2ab87e7 liboctave/Makefile.am
--- a/liboctave/Makefile.am     Fri Oct 30 11:10:14 2009 -0400
+++ b/liboctave/Makefile.am     Sat Oct 31 14:08:00 2009 +0100
@@ -494,10 +494,10 @@
 LINK_DEPS = \
   $(RLD_FLAG) \
   ../libcruft/libcruft.la \
-  $(SPARSE_LDFLAGS) $(SPARSE_LIBS) \
+  $(SPARSE_LDFLAGS) $(SPARSE_XLIBS) \
   $(ARPACK_LIBS) \
   $(QRUPDATE_LIBS) \
-  $(FFTW_LDFLAGS) $(FFTW_LIBS) \
+  $(FFTW_LDFLAGS) $(FFTW_XLIBS) \
   $(LAPACK_LIBS) $(BLAS_LIBS) \
   $(READLINE_LIBS) $(TERM_LIBS) \
   $(LIBGLOB) $(REGEX_LIBS) $(DL_LIBS) \

I get both cruft.dll and octave.dll

However, building liboctinterp still fails. No shared library is created and building .oct file fails with a lot of "undefined reference" errors.
I need to debug further.

benjamin


reply via email to

[Prev in Thread] Current Thread [Next in Thread]