This is the mail archive of the 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]

Re: mips-linux LIB_SPEC

On May 19, 2003, Daniel Jacobowitz <> wrote:

> 2003-05-19  Daniel Jacobowitz  <>

> 	* 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  <>

	* 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
Red Hat GCC Developer                 aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
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]