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]
Other format: [Raw text]

libf2c won't install properly if exec_prefix != prefix


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


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