This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [Fortran - trunk, committed] Make libf2c a shared library.


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]