This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: mips-linux LIB_SPEC
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: gcc-patches at gcc dot gnu dot org, echristo at redhat dot com
- Date: 19 May 2003 21:48:10 -0300
- Subject: Re: mips-linux LIB_SPEC
- Organization: GCC Team, Red Hat
- References: <20030519235012.GA13549@nevyn.them.org>
On May 19, 2003, Daniel Jacobowitz <drow@mvista.com> wrote:
> 2003-05-19 Daniel Jacobowitz <drow@mvista.com>
> * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
> -lthread to -lpthread.
Thanks, good catch. This seems to be needed in mainline as well. We
also need this for mips64-linux, so I'm going ahead and checking it in
as obvious.
Index: gcc/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* config/mips/linux64.h (LIB_SPEC): Same as:
Index: gcc/config/mips/linux64.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/linux64.h,v
retrieving revision 1.3
diff -u -p -r1.3 linux64.h
--- gcc/config/mips/linux64.h 1 Apr 2003 21:45:28 -0000 1.3
+++ gcc/config/mips/linux64.h 20 May 2003 00:45:31 -0000
@@ -46,11 +46,13 @@ Boston, MA 02111-1307, USA. */
#undef LIB_SPEC
#define LIB_SPEC "\
+%{shared: -lc} \
%{!static: \
%{mabi=n32:-rpath-link %R/lib32:%R/usr/lib32} \
%{mabi=64:-rpath-link %R/lib64:%R/usr/lib64} \
%{mabi=32:-rpath-link %R/lib:%R/usr/lib}} \
-%{!shared: %{pthread:-lthread} %{profile:-lc_p} %{!profile: -lc}}"
+%{!shared: %{pthread:-lpthread} \
+ %{profile:-lc_p} %{!profile: -lc}}"
#undef LINK_SPEC
#define LINK_SPEC "\
--
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