linux.h, linux64.h (LIB_SPEC): Always imply -lpthread for -pthread.
authorThiemo Seufer <ths@networkno.de>
Wed, 13 Jun 2007 23:22:29 +0000 (23:22 +0000)
committerThiemo Seufer <ths@gcc.gnu.org>
Wed, 13 Jun 2007 23:22:29 +0000 (23:22 +0000)
* config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always
imply -lpthread for -pthread.

From-SVN: r125688

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

index b3de4bf7d3f457b71bdf9aa7075f86fd8a5923a3..348347cc96253e9d13189790bc1443c5833c2a14 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 303ce1d0a5a366af65e286f98ca05bf7edb59ba9..e5d908eb5f3a69af417350d487161d89d7d61aaf 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 92e326eaf1b2ca8da74a77249ec38c55043d807b..e4b7fd698f77629439db81a60a47f4f3ddf97181 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"