summaryrefslogtreecommitdiff
path: root/gcc/config/m32r
diff options
context:
space:
mode:
authorNick Clifton <nickc@gcc.gnu.org>2007-06-19 10:36:11 +0000
committerNick Clifton <nickc@gcc.gnu.org>2007-06-19 10:36:11 +0000
commita3a7addb9c1f1f36393a053b09bb9e2555c01580 (patch)
treeea40dc430d47198deaa7f1a5d2aec8bf8ebf399d /gcc/config/m32r
parentfda2b8e358dbd6c086db9229f30adb1011afca84 (diff)
downloadgcc-a3a7addb9c1f1f36393a053b09bb9e2555c01580.tar.gz
* config/m32r/linux.h (LIB_SPEC): Always imply -lpthread for -pthread.
From-SVN: r125845
Diffstat (limited to 'gcc/config/m32r')
-rw-r--r--gcc/config/m32r/linux.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/config/m32r/linux.h b/gcc/config/m32r/linux.h
index 5e31e46af0a..00ab9693de8 100644
--- a/gcc/config/m32r/linux.h
+++ b/gcc/config/m32r/linux.h
@@ -82,9 +82,11 @@
#undef LIB_SPEC
#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}}"
#undef STARTFILE_SPEC
#if defined HAVE_LD_PIE