summaryrefslogtreecommitdiff
path: root/gcc/config/sol2.h
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-13 17:58:18 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2011-07-13 17:58:18 +0000
commit867bec2cad33fe69ce54da65855f19bc7f88789a (patch)
tree587b523eeb3cdc6d42e4b294e7a218dee5d581dd /gcc/config/sol2.h
parent0c775e959f0255a126791d6e3053c8fa362018cf (diff)
downloadgcc-867bec2cad33fe69ce54da65855f19bc7f88789a.tar.gz
PR target/49541
* 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
Diffstat (limited to 'gcc/config/sol2.h')
-rw-r--r--gcc/config/sol2.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h
index 3867c7dd245..99f0382b644 100644
--- a/gcc/config/sol2.h
+++ b/gcc/config/sol2.h
@@ -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}"