Make -pthread a complete alias to -lpthread, not only in !shared case.
authorSimon Schubert <corecode@dragonflybsd.org>
Thu, 24 Jul 2008 21:45:10 +0000 (21:45 +0000)
committerSimon Schubert <corecode@dragonflybsd.org>
Thu, 24 Jul 2008 21:45:10 +0000 (21:45 +0000)
Discussed-with:  hasso@ (pro), joerg@ (con)
Pointed-out-by: hasso@
gnu/usr.bin/cc34/cc_prep/config/dragonfly-spec.h
gnu/usr.bin/cc41/cc_prep/config/dragonfly-spec.h

index b49eae1..d5b49e2 100644 (file)
@@ -1,4 +1,4 @@
-/* $DragonFly: src/gnu/usr.bin/cc34/cc_prep/config/dragonfly-spec.h,v 1.13 2007/04/17 12:18:37 corecode Exp $ */
+/* $DragonFly: src/gnu/usr.bin/cc34/cc_prep/config/dragonfly-spec.h,v 1.14 2008/07/24 21:45:10 corecode Exp $ */
 
 /* Base configuration file for all DragonFly targets.
    Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
@@ -126,7 +126,7 @@ is built with the --enable-threads configure-time option.}          \
   }"
 #else
 #define DFBSD_LIB_SPEC "                                               \
-  %{!shared: %{pthread:-lpthread}}                                             \
+  %{pthread:-lpthread}                                                         \
   %{!nostdlib: %{!nostartfiles: %{!nolibc: -lc}}}                      \
   "
 #endif
index 56968bf..9bfa2dd 100644 (file)
@@ -1,4 +1,4 @@
-/* $DragonFly: src/gnu/usr.bin/cc41/cc_prep/config/dragonfly-spec.h,v 1.4 2007/04/17 12:18:37 corecode Exp $ */
+/* $DragonFly: src/gnu/usr.bin/cc41/cc_prep/config/dragonfly-spec.h,v 1.5 2008/07/24 21:45:10 corecode Exp $ */
 
 /* Base configuration file for all DragonFly targets.
    Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
@@ -125,7 +125,7 @@ is built with the --enable-threads configure-time option.}          \
   }"
 #else
 #define DFBSD_LIB_SPEC "                                               \
-  %{!shared: %{pthread:-lpthread}}                                     \
+  %{pthread:-lpthread}                                                 \
   %{!nostdlib: %{!nostartfiles: %{!nolibc: -lc}}}                      \
   "
 #endif