dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #01993
Re: Version 0.6.0?
On Thu, 2006-02-16 at 17:48 +0100, Johan Jansson wrote:
> On Thu, Feb 16, 2006 at 03:36:00PM +0100, Garth N. Wells wrote:
> > I think I've found the problem with static libraries. In configure.ac,
> > DOLFIN_LTLIBS should refer to all the *.lo files, which are located in
> > the same directories as the source code (see
> > http://sourceware.org/autobook/autobook/autobook_94.html).
> >
> > Also, is the line
> >
> > libdolfin_la_DEPENDENCIES = @DOLFIN_LTLIBS@
> >
> > in src/lib/Makefile.am required?
> >
> > Garth
> >
> > # Generate libtool library list (including also module code)
> > DOLFIN_LTLIBS=""
> > for f in $DOLFIN_MODULES; do
> > # DOLFIN_LTLIBS="$DOLFIN_LTLIBS \
> > $(top_builddir)/src/modules/$f/libdolfin-$f.la "
> > DOLFIN_LTLIBS="$DOLFIN_LTLIBS \$(top_builddir)/src/modules/$f/*.lo "
> > done
> > for f in $DOLFIN_KERNEL; do
> > # DOLFIN_LTLIBS="$DOLFIN_LTLIBS \
> > $(top_builddir)/src/kernel/$f/libdolfin-$f.la "
> > DOLFIN_LTLIBS="$DOLFIN_LTLIBS \$(top_builddir)/src/kernel/$f/*.lo "
> > done
> > AC_SUBST(DOLFIN_LTLIBS)
> >
>
> Ok, libtool can handle this much better. Perhaps linking library files
> (.la) isn't an established feature yet.
>
Works great for me now - both static and shared. I'll try it under
Cygwin shortly.
> Explicitly setting the DEPENDENCIES variable is needed, LIBADD doesn't
> seem to generate any dependencies. This is an issue with automake
> though.
>
OK, I didn't know if we would need to set a new variable, or if
DOLFIN_LTLIBS could just be redfined. I see that you've added a new
variable.
> With the change to linking directly against the library object files,
> the individual libraries (libdolfin-la, libdolfin-stokes etc.) are
> redundant and I think just confusing, so I will remove them if you
> agree with this. In the terminology of libtool, every object file is a
> library anyway. We can still keep the structure, just that it won't
> show up in the libraries.
>
I see the concept "convenience" libraries a lot with libtool. We could
still make all the individual libraries, but only install libdolfin.a.
Is there an advantage in doing this?
Garth
> Johan
>
>
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/cgi-bin/mailman/listinfo/dolfin-dev
--
Dr. Garth N. Wells
Faculty of Civil Engineering and Geosciences
Delft University of Technology
Stevinweg 1
2628 CN Delft
The Netherlands
tel. +31 15 278 7922
fax. +31 15 278 6383
e-mail g.n.wells@xxxxxxxxxx
url http://www.mechanics.citg.tudelft.nl/~garth
Follow ups
References
-
Re: Version 0.6.0?
From: Johan Jansson, 2006-02-13
-
Re: Version 0.6.0?
From: Anders Logg, 2006-02-13
-
Re: Version 0.6.0?
From: Johan Hoffman, 2006-02-14
-
Re: Version 0.6.0?
From: Garth N. Wells, 2006-02-14
-
Re: Version 0.6.0?
From: Johan Jansson, 2006-02-14
-
Re: Version 0.6.0?
From: Garth N. Wells, 2006-02-15
-
Re: Version 0.6.0?
From: Johan Jansson, 2006-02-16
-
Re: Version 0.6.0?
From: Garth N. Wells, 2006-02-16
-
Re: Version 0.6.0?
From: Johan Jansson, 2006-02-16
-
Re: Version 0.6.0?
From: Garth N. Wells, 2006-02-16
-
Re: Version 0.6.0?
From: Johan Jansson, 2006-02-16