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: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Subject: Re: [Fortran - trunk, committed] Make libf2c a shared library.
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 30 Sep 2001 19:40:12 -0300
- Cc: gcc-patches at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <3BB799D9.83B67DD1@moene.indiv.nluug.nl>
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:
*_Never_* try to set the interface numbers so that they
correspond to the release number of your package.
> 4. There are still some (apparently harmless) error messages:
> ../../../../gcc/libf2c/libU77/configure: LIBU77_GETTIMEOFDAY: command
> not found
Err... This macro was probably defined, or supposed to be defined, in
libf2c/libU77/aclocal.m4, wasn't it?
> *** ./libf2c/libF77/configure.in.orig Sun Sep 30 20:47:51 2001
> --- ./libf2c/libF77/configure.in Sun Sep 30 21:44:34 2001
> *************** define([AC_PROG_CC_WORKS],[])
> *** 33,36 ****
> --- 33,39 ----
> AC_PROG_CC
> + LIBTOOL='$(SHELL) ../libtool'
> + AC_SUBST(LIBTOOL)
> +
> test "$AR" || AR=ar
> AC_SUBST(AR)
It has just occurred to me that you might have just defined it
explicitly in Makefile.in, as well. No big deal, of course :-)
> *************** 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.
--
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