summaryrefslogtreecommitdiff
path: root/gcc/config/linux.h
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2002-12-10 10:55:32 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2002-12-10 10:55:32 +0000
commitec5fe4f6a66df9bd274088f8cc067164d205ef8e (patch)
tree58367f46cd9deb7e9ba3e672cc175a9880a10dcb /gcc/config/linux.h
parentf9f63503232c7e391e4dd7bdddc28de6f05beeae (diff)
downloadgcc-ec5fe4f6a66df9bd274088f8cc067164d205ef8e.tar.gz
* config/linux.h (LIB_SPEC): If -pthread, add -lpthread even if
-shared. * config/alpha/linux-elf.h (LIB_SPEC): Likewise. * config/alpha/linux.h (LIB_SPEC): Likewise. * config/arm/linux-elf.h (LIB_SPEC): Likewise. * config/pa/pa-linux.h (LIB_SPEC): Likewise. * config/sparc/linux.h (LIB_SPEC): Likewise. * config/sparc/linux64.h (LIB_SPEC): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59992 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/linux.h')
-rw-r--r--gcc/config/linux.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/linux.h b/gcc/config/linux.h
index 5b7311c1697..2b1e50f3bde 100644
--- a/gcc/config/linux.h
+++ b/gcc/config/linux.h
@@ -93,9 +93,9 @@ Boston, MA 02111-1307, USA. */
%{!profile:%{!ggdb:-lc} %{ggdb:-lg}}}"
#else
#define LIB_SPEC \
- "%{shared: -lc} \
- %{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \
- %{profile:-lc_p} %{!profile: -lc}}"
+ "%{pthread:-lpthread} \
+ %{shared:-lc} \
+ %{!shared:%{mieee-fp:-lieee} %{profile:-lc_p}%{!profile:-lc}}"
#endif
#else
#define LIB_SPEC \