Hi Ed, * Ed Hartnett wrote on Tue, Apr 22, 2008 at 01:24:45PM CEST: > I am using it to distribute a freeware scientific data library, > netcdf. The netcdf distribution actually builds more than one > library. It builds a core C library, and a fortran library. The > fortran library calls the C library. > > The way I handle this is to first build the fortran library, then the > C library.
But that won't work portably (as you've now noticed). You need to tell libtool that libnetcdff depends on libnetcdf, and the latter needs to be built first, as Dan already noted. Do it like this: libnetcdff_la_LIBADD = ../subdir/libnetcdf.la with a relative path to the C library. If they are in different directories, you need to adjust SUBDIRS ordering in the right Makefile.am file so that the C library is built first. If in the same directory, you need to list libnetcdf.la first in lib_LTLIBRARIES. Hope that helps. Cheers, Ralf _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool