octave-maintainers
[Top][All Lists]
Advanced

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

Re: mingw linking error: missing -lregex and -larpack for liboctave?


From: Benjamin Lindner
Subject: Re: mingw linking error: missing -lregex and -larpack for liboctave?
Date: Thu, 08 Jan 2009 21:38:06 +0100
User-agent: Thunderbird 2.0.0.18 (Windows/20081105)


Long talk's conclusion, please consider the attached changeset which fixes the issues and allows clean build of the development sources with mingw32


sorry, flaw in changeset found. I mixed part of a second changeset into it...
Here again, now clean

benjamin
# HG changeset patch
# User Benjamin Lindner <address@hidden>
# Date 1231446734 -3600
# Node ID 680fac2d67244128bf8e1c345b481a9bf2c19f82
# Parent  dd52e541418b6ad9d788c0710bdf12727f06f1ab
add -lregex to REGEX_LIBS at configure stage, add ARPACK_LIBS, REGEX_LIBS to 
liboctave's link deps

diff -r dd52e541418b -r 680fac2d6724 ChangeLog
--- a/ChangeLog Mon Jan 05 21:33:54 2009 -0500
+++ b/ChangeLog Thu Jan 08 21:32:14 2009 +0100
@@ -1,3 +1,8 @@
+2008-01-08  Benjamin Lindner <address@hidden>
+
+       * configure.in: Addition of -lregex to REGEX_LIBS
+       * liboctave/Makefile.in: add ARPACK_LIBS and REGEX_LIBS to LINK_DEPS
+
 2008-12-23  David Bateman  <address@hidden>
 
        * configure.in: Add configuration test for ARPACK. 
diff -r dd52e541418b -r 680fac2d6724 configure.in
--- a/configure.in      Mon Jan 05 21:33:54 2009 -0500
+++ b/configure.in      Thu Jan 08 21:32:14 2009 +0100
@@ -453,10 +453,8 @@
   AC_CHECK_LIB(regex, regexec, WITH_REGEX=yes, WITH_REGEX=no)])
 if test $WITH_REGEX = yes ; then
   AC_DEFINE(HAVE_REGEX, 1, [Define if regex is available.])
-  if test $WITH_PCRE = no ; then
     AC_CHECK_FUNCS(regexec, REGEX_LIBS= , [
-      AC_CHECK_LIB(regex, regexec, REGEX_LIBS="-lregex")])
-  fi
+      AC_CHECK_LIB(regex, regexec, REGEX_LIBS="$REGEX_LIBS -lregex")])
 fi
 if test $WITH_REGEX = no; then
   warn_regex="regular expression functions not found.  The regular expression 
matching functions will be disabled."
diff -r dd52e541418b -r 680fac2d6724 liboctave/Makefile.in
--- a/liboctave/Makefile.in     Mon Jan 05 21:33:54 2009 -0500
+++ b/liboctave/Makefile.in     Thu Jan 08 21:32:14 2009 +0100
@@ -38,7 +38,7 @@
   -L../libcruft -L. $(RLD_FLAG) \
   $(LIBCRUFT) $(CHOLMOD_LIBS) $(UMFPACK_LIBS)  $(AMD_LIBS) \
   $(CAMD_LIBS) $(COLAMD_LIBS) $(CCOLAMD_LIBS) $(CXSPARSE_LIBS) \
-  $(BLAS_LIBS) $(FFTW_LIBS) $(LIBREADLINE) $(LIBGLOB) $(LIBS) $(FLIBS)
+  $(ARPACK_LIBS) $(BLAS_LIBS) $(FFTW_LIBS) $(LIBREADLINE) $(LIBGLOB) 
$(REGEX_LIBS) $(LIBS) $(FLIBS)
 
 MATRIX_INC := Array.h Array2.h Array3.h ArrayN.h DiagArray2.h \
        Array-util.h ArrayN-idx.h MArray-defs.h \

reply via email to

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