This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Fortran - trunk, committed] Make libf2c a shared library.
- To: Alexandre Oliva <aoliva at redhat dot com>
- Subject: Re: [Fortran - trunk, committed] Make libf2c a shared library.
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Mon, 01 Oct 2001 01:13:05 +0200
- CC: gcc-patches at gcc dot gnu dot org
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <3BB799D9.83B67DD1@moene.indiv.nluug.nl> <orlmiwfgkz.fsf@localhost.localdomain>
Alexandre Oliva wrote:
> On Sep 30, 2001, Toon Moene <toon@moene.indiv.nluug.nl> wrote:
> > 3. As an example, I clearly do not understand why libtool rejects
> > 0.5.27 as the version number:
>
> Please replase the version info with 0:0:0, and read the `Library
> Versioning' node in the libtool manual. To quote a little bit of it:
Done (at least locally). I will propagate this to the trunk.
> > *************** G77DIR = ../../../gcc/
> > *** 58,62 ****
>
> > .c.o:
> > ! $(CC) -c -DSkip_f2c_Undefs $(ALL_CFLAGS) $<
>
> > OBJS = VersionU.o gerror_.o perror_.o ierrno_.o itime_.o time_.o \
> > --- 54,58 ----
>
> > .c.o:
> > ! @LIBTOOL@ --mode=compile $(CC) -c -DSkip_f2c_Undefs $(ALL_CFLAGS) $<
>
> > OBJS = VersionU.o gerror_.o perror_.o ierrno_.o itime_.o time_.o \
>
> 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
?
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)