OSDN Git Service

* config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always
authorths <ths@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Jun 2007 23:22:29 +0000 (23:22 +0000)
committerths <ths@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Jun 2007 23:22:29 +0000 (23:22 +0000)
imply -lpthread for -pthread.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125688 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/mips/linux.h
gcc/config/mips/linux64.h

index b3de4bf..348347c 100644 (file)
@@ -1,3 +1,8 @@
+2007-06-13  Thiemo Seufer  <ths@networkno.de>
+
+       * config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always
+       imply -lpthread for -pthread.
+
 2007-06-13  Kazu Hirata  <kazu@codesourcery.com>
 
        * basic-block.h: Remove the prototype for
index 303ce1d..e5d908e 100644 (file)
@@ -174,9 +174,10 @@ Boston, MA 02110-1301, USA.  */
 
 #undef LIB_SPEC
 #define LIB_SPEC "\
-%{shared: -lc} \
-%{!shared: %{pthread:-lpthread} \
-  %{profile:-lc_p} %{!profile: -lc}}"
+%{pthread:-lpthread} \
+%{shared:-lc} \
+%{!shared: \
+  %{profile:-lc_p} %{!profile:-lc}}"
 
 #define MD_UNWIND_SUPPORT "config/mips/linux-unwind.h"
 
index 92e326e..e4b7fd6 100644 (file)
@@ -34,9 +34,10 @@ NO_SHARED_SPECS \
 
 #undef LIB_SPEC
 #define LIB_SPEC "\
-%{shared: -lc} \
-%{!shared: %{pthread:-lpthread} \
-  %{profile:-lc_p} %{!profile: -lc}}"
+%{pthread:-lpthread} \
+%{shared:-lc} \
+%{!shared: \
+  %{profile:-lc_p} %{!profile:-lc}}"
 
 #define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
 #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld.so.1"