diff options
author | John David Anglin <danglin@gcc.gnu.org> | 2008-01-17 03:55:34 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2008-01-17 03:55:34 +0000 |
commit | 4d6f8e561e9b8eca5acc6c220bd0ebd8d9873cac (patch) | |
tree | 5d67b939b8c174dd8b5a9cc6b60b6297d49d6156 /gcc/config/pa | |
parent | 37b87a3a8a76b5a00a8cd24f62b03ef3ba2c274a (diff) | |
download | gcc-4d6f8e561e9b8eca5acc6c220bd0ebd8d9873cac.zip gcc-4d6f8e561e9b8eca5acc6c220bd0ebd8d9873cac.tar.gz gcc-4d6f8e561e9b8eca5acc6c220bd0ebd8d9873cac.tar.bz2 |
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
Diffstat (limited to 'gcc/config/pa')
-rw-r--r-- | gcc/config/pa/pa-hpux11.h | 3 | ||||
-rw-r--r-- | gcc/config/pa/pa64-hpux.h | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/config/pa/pa-hpux11.h b/gcc/config/pa/pa-hpux11.h index ce31119..ae9e4d3 100644 --- a/gcc/config/pa/pa-hpux11.h +++ b/gcc/config/pa/pa-hpux11.h @@ -123,7 +123,8 @@ along with GCC; see the file COPYING3. If not see #define LIB_SPEC \ "%{!shared:\ %{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 #define STARTFILE_SPEC \ diff --git a/gcc/config/pa/pa64-hpux.h b/gcc/config/pa/pa64-hpux.h index 167feae..ef1122d 100644 --- a/gcc/config/pa/pa64-hpux.h +++ b/gcc/config/pa/pa64-hpux.h @@ -64,7 +64,8 @@ along with GCC; see the file COPYING3. If not see %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\ %{pg:%{static:%{!mhp-ld:-a shared}%{mhp-ld:-a archive_shared}}\ -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 #define LIB_SPEC \ "%{!shared:\ @@ -75,7 +76,8 @@ along with GCC; see the file COPYING3. If not see %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\ %{pg:%{static:%{mgnu-ld:-a shared}%{!mgnu-ld:-a archive_shared}}\ -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 /* The libgcc_stub.a and milli.a libraries need to come last. */ |