[Fortran - trunk, committed] Make libf2c a shared library.
Alexandre Oliva
aoliva@redhat.com
Sun Sep 30 17:25:00 GMT 2001
On Sep 30, 2001, Toon Moene <toon@moene.indiv.nluug.nl> wrote:
>> This is not right. The extension of Libtool object file wrappers is
>> .lo, not .o. If you --disable-static, you won't ever get a .o, and
>> this rule will trigger over and over. Consider a global s/\\.o/.lo/
>> in `Makefile.in's.
> Wouldn't that be adequately dealt with according to:
> objlist:
> objs="`cat ../objlist`" ; for i in $(OBJS) ; do \
> x=`echo $$i | sed -e "s/\.o$$/.lo/g"` ;\
> objs="$$objs libF77/$$x" ;\
> done ; \
> echo -n $$objs > ../objlist
Nope, the Makefile dependencies would still be wrong, and would
trigger at the wrong times. Unless I'm mis-reading it.
Remember that, if you configure --disable-static, libtool *won't*
create the .o files, only the .lo object-abstraction files and the PIC
object files inside .libs. So you want Makefile dependencies on .lo,
not .o.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
More information about the Gcc-patches
mailing list