This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib 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]

libtool fix for mips64-linux-gnu


This patch fixes a problem in libtool that caused it to not link
libstdc++.so with the shared libgcc on the n32 and n64 multilibs.  The
problem was that libtool relied on a regular expression to match the
output of the command `file' when given a shared library, but the
output of file included information about the MIPS ISA required by the
shared library, which libtool didn't expect.  Since MIPS code is PIC
by default anyway, using pass_all is safe.  In fact, this is what
libtool mainline already did for mips and mipsel; I've just extended
it to mips*, so I'm now checking this in mainline.

Despite the ChangeLog entry, I'm rebuilding only configure scripts
that are most directly affected, such as those of shared libraries
that are part of gcc.  binutils uses static libraries by default, so
it's mostly unaffected.  newlib doesn't support mips64*-linux-gnu, so
it's not affected either.  GDB doesn't use libtool, but some of the
libraries it shares with binutils are potentially affected, so I'm
Cc:ing it.

We should probably create a separate mailing list for top-level
patches...  I'm probably missing a number of other projects :-(

Index: ChangeLog
from  Alexandre Oliva  <aoliva at redhat dot com>

	* libtool.m4 (lt_cv_deplibs_check_method): Use pass_all on mips*.
	* */configure: Rebuilt.

Index: libtool.m4
===================================================================
RCS file: /cvs/gcc/gcc/libtool.m4,v
retrieving revision 1.11
diff -u -p -r1.11 libtool.m4
--- libtool.m4 20 Feb 2003 01:11:51 -0000 1.11
+++ libtool.m4 11 Apr 2003 02:17:49 -0000
@@ -678,7 +678,7 @@ irix5* | irix6*)
 # This must be Linux ELF.
 linux-gnu*)
   case $host_cpu in
-  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
+  alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
     lt_cv_deplibs_check_method=pass_all ;;
   *)
     # glibc up to 2.1.1 does not perform some relocations on ARM
-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva at {redhat dot com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva at {lsd dot ic dot unicamp dot br, gnu.org}
Free Software Evangelist                Professional serial bug killer

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