This is the mail archive of the gcc@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]

[PATCH, committed] Re: Problems with shared libg2c library


Peter Schmid wrote:

> The linker uses the static copy of libg2c, located in the directory
> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/. Maybe the order of the
> -L directives should be changed by swapping -L/usr/local/lib with
> -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1?

Good analysis, wrong solution :-)

The error is that libg2c.a still lives in
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1 - it should have been moved
to /usr/local/lib.

The following patch [installed] does this:

*** Makefile.in.orig    Tue Oct  2 21:41:33 2001
--- Makefile.in Fri Oct  5 08:32:40 2001
*************** check:
*** 208,215 ****
  install: all
        $(LIBTOOL) --mode=install $(INSTALL_DATA) $(LIBG2C)
$(libsubdir)/$(MULTISUBDIR)
!       (cd $(libsubdir)/$(MULTISUBDIR) ; \
!          if [ -f $(LIBG2C_BASE).so ]; then \
!            mv $(LIBG2C_BASE).so* $(prefix)/lib ;\
!          fi)
        $(INSTALL_DATA) libfrtbegin.a $(libsubdir)/$(MULTISUBDIR)
        $(RANLIB) $(libsubdir)/$(MULTISUBDIR)/libfrtbegin.a
--- 208,212 ----
  install: all
        $(LIBTOOL) --mode=install $(INSTALL_DATA) $(LIBG2C)
$(libsubdir)/$(MULTISUBDIR)
!       (cd $(libsubdir)/$(MULTISUBDIR) ; mv -f $(LIBG2C_BASE).*
$(prefix)/lib)
        $(INSTALL_DATA) libfrtbegin.a $(libsubdir)/$(MULTISUBDIR)
        $(RANLIB) $(libsubdir)/$(MULTISUBDIR)/libfrtbegin.a

-- 
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]