This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[PATCH, committed] Re: Problems with shared libg2c library
- To: Peter Schmid <schmid at snake dot iap dot physik dot tu-darmstadt dot de>
- Subject: [PATCH, committed] Re: Problems with shared libg2c library
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Fri, 05 Oct 2001 08:56:52 +0200
- CC: Andreas Schwab <schwab at suse dot de>, gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <Pine.LNX.4.21.0110032254200.6680-100000@snake.iap.physik.tu-darmstadt.de>
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)