From b64a6dbdbb123ca444bd4c15c845188ee49ed2f9 Mon Sep 17 00:00:00 2001 From: Thiemo Seufer Date: Wed, 13 Jun 2007 23:22:29 +0000 Subject: [PATCH] linux.h, linux64.h (LIB_SPEC): Always imply -lpthread for -pthread. * config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always imply -lpthread for -pthread. From-SVN: r125688 --- gcc/ChangeLog | 5 +++++ gcc/config/mips/linux.h | 7 ++++--- gcc/config/mips/linux64.h | 7 ++++--- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b3de4bf7d3f..348347cc962 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-06-13 Thiemo Seufer + + * config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always + imply -lpthread for -pthread. + 2007-06-13 Kazu Hirata * basic-block.h: Remove the prototype for diff --git a/gcc/config/mips/linux.h b/gcc/config/mips/linux.h index 303ce1d0a5a..e5d908eb5f3 100644 --- a/gcc/config/mips/linux.h +++ b/gcc/config/mips/linux.h @@ -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" diff --git a/gcc/config/mips/linux64.h b/gcc/config/mips/linux64.h index 92e326eaf1b..e4b7fd698f7 100644 --- a/gcc/config/mips/linux64.h +++ b/gcc/config/mips/linux64.h @@ -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"