Commit 4d6f8e56 by John David Anglin

pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or "-pthread" is specified.

	* pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
	"-pthread" is specified.
	* pa-hpux11.h (LIB_SPEC): Likewise.

From-SVN: r131590
parent 37b87a3a
...@@ -123,7 +123,8 @@ along with GCC; see the file COPYING3. If not see ...@@ -123,7 +123,8 @@ along with GCC; see the file COPYING3. If not see
#define LIB_SPEC \ #define LIB_SPEC \
"%{!shared:\ "%{!shared:\
%{mt|pthread:-lpthread} -lc \ %{mt|pthread:-lpthread} -lc \
%{static:%{!nolibdld:-a shared -ldld -a archive -lpthread -lc}}}" %{static:%{!nolibdld:-a shared -ldld -a archive -lpthread -lc}}}\
%{shared:%{mt|pthread:-lpthread}}"
#undef STARTFILE_SPEC #undef STARTFILE_SPEC
#define STARTFILE_SPEC \ #define STARTFILE_SPEC \
......
...@@ -64,7 +64,8 @@ along with GCC; see the file COPYING3. If not see ...@@ -64,7 +64,8 @@ along with GCC; see the file COPYING3. If not see
%{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\ %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
%{pg:%{static:%{!mhp-ld:-a shared}%{mhp-ld:-a archive_shared}}\ %{pg:%{static:%{!mhp-ld:-a shared}%{mhp-ld:-a archive_shared}}\
-lgprof %{static:-a archive} %{static|mt|pthread:-lpthread} -lc\ -lgprof %{static:-a archive} %{static|mt|pthread:-lpthread} -lc\
%{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}" %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
%{shared:%{mt|pthread:-lpthread}}"
#else #else
#define LIB_SPEC \ #define LIB_SPEC \
"%{!shared:\ "%{!shared:\
...@@ -75,7 +76,8 @@ along with GCC; see the file COPYING3. If not see ...@@ -75,7 +76,8 @@ along with GCC; see the file COPYING3. If not see
%{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\ %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
%{pg:%{static:%{mgnu-ld:-a shared}%{!mgnu-ld:-a archive_shared}}\ %{pg:%{static:%{mgnu-ld:-a shared}%{!mgnu-ld:-a archive_shared}}\
-lgprof %{static:-a archive} %{static|mt|pthread:-lpthread} -lc\ -lgprof %{static:-a archive} %{static|mt|pthread:-lpthread} -lc\
%{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}" %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
%{shared:%{mt|pthread:-lpthread}}"
#endif #endif
/* The libgcc_stub.a and milli.a libraries need to come last. */ /* The libgcc_stub.a and milli.a libraries need to come last. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment