This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
libf2c won't install properly if exec_prefix != prefix
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Cc: gcc at gcc dot gnu dot org
- Date: 02 Dec 2001 16:37:44 -0200
- Subject: libf2c won't install properly if exec_prefix != prefix
- Organization: GCC Team, Red Hat
Toon,
This patch:
2001-10-05 Toon Moene <toon@moene.indiv.nluug.nl>
* Makefile.in: Move libg2c.so and libg2c.{l}a to
the same directory at install.
broke the libf2c install in case prefix != exec_prefix, in the line below:
(cd $(libsubdir)/$(MULTISUBDIR) ; mv -f $(LIBG2C_BASE).* $(prefix)/lib))
$(libdir), that you should have used, is $(exec_prefix)/lib, not
$(prefix)/lib. libraries are machine-dependent, so they go in
exec_prefix.
Anyway, there's more to be fixed about this line. Do you realize
that, when a library is multilibbed, only the last copy of the library
will survive and, even then, its .la file will point into the multilib
directory, but the library will no longer be there?
I strongly recommend removing this line, but I'm curious about the
reason behind your having introduced it.
Cheers,
--
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