OSDN Git Service

PR target/49541
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Jul 2011 17:58:18 +0000 (17:58 +0000)
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Jul 2011 17:58:18 +0000 (17:58 +0000)
* config/sol2.h (LIB_SPEC): Simplify.
Move LIB_THREAD_LDFLAGS_SPEC ...
(LINK_SPEC): ... here.

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

gcc/ChangeLog
gcc/config/sol2.h

index cd02017..ba71966 100644 (file)
@@ -1,3 +1,10 @@
+2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       PR target/49541
+       * config/sol2.h (LIB_SPEC): Simplify.
+       Move LIB_THREAD_LDFLAGS_SPEC ...
+       (LINK_SPEC): ... here.
+
 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
 
        * haifa-sched.c (struct sched_block_state): New.
index 3867c7d..99f0382 100644 (file)
@@ -109,10 +109,8 @@ along with GCC; see the file COPYING3.  If not see
 #undef LIB_SPEC
 #define LIB_SPEC \
   "%{!symbolic:\
-     %{pthreads|pthread:" \
-        LIB_THREAD_LDFLAGS_SPEC " -lpthread " LIB_TLS_SPEC "} \
-     %{fprofile-generate*:" \
-        LIB_THREAD_LDFLAGS_SPEC " " LIB_TLS_SPEC "} \
+     %{pthreads|pthread:-lpthread} \
+     %{pthreads|pthread|fprofile-generate*:" LIB_TLS_SPEC "} \
      %{p|pg:-ldl} -lc}"
 
 #ifndef CROSS_DIRECTORY_STRUCTURE
@@ -175,6 +173,7 @@ along with GCC; see the file COPYING3.  If not see
    %{static:-dn -Bstatic} \
    %{shared:-G -dy %{!mimpure-text:-z text}} \
    %{symbolic:-Bsymbolic -G -dy -z text} \
+   %{pthreads|pthread|fprofile-generate*:" LIB_THREAD_LDFLAGS_SPEC "} \
    %(link_arch) \
    %{Qy:} %{!Qn:-Qy}"