Hello Pekko,

* Pekko Metsä wrote on Sat, Jul 04, 2009 at 05:49:53AM CEST:
> I'm trying to use GNU autotools (automake-1.10.1, autoconf-2.61 and
> libtool-2.2.4) for linking Fortran libraries. First I compile two
> libraries in separate directories, lib1/libx.la and lib2/liby.la.
> There libtool is doing what I want, ie.

> But, when I try to combine libx.la and liby.la together to libxy.la,
> libtool is not using gfortran for linking (but gcc):

> libxy_la_SOURCES =
> libxy_la_LIBADD = lib1/libx.la lib2/liby.la

Try adding this here:
  EXTRA_libxy_la_SOURCES = dummy.f95

to fool automake into choosing FC as linker.

Cheers,
Ralf


_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to