public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* libtool fix for mips64-linux-gnu
@ 2003-04-11  3:57 Alexandre Oliva
  0 siblings, 0 replies; only message in thread
From: Alexandre Oliva @ 2003-04-11  3:57 UTC (permalink / raw)
  To: gcc-patches, binutils, gdb-patches, newlib

[-- Attachment #1: Type: text/plain, Size: 1147 bytes --]

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 :-(


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: libtool-mips-pass-all.patch --]
[-- Type: text/x-patch, Size: 751 bytes --]

Index: ChangeLog
from  Alexandre Oliva  <aoliva@redhat.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

[-- Attachment #3: Type: text/plain, Size: 289 bytes --]


-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-11  3:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-11  3:57 libtool fix for mips64-linux-gnu Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).