libtool
[Top][All Lists]
Advanced

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

Re: Combining two Fortran libraries?


From: Ralf Wildenhues
Subject: Re: Combining two Fortran libraries?
Date: Sat, 4 Jul 2009 10:32:08 +0200
User-agent: Mutt/1.5.20 (2009-06-15)

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




reply via email to

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