diff options
author | Steve Ellcey <sje@cup.hp.com> | 2009-08-27 22:35:16 +0000 |
---|---|---|
committer | Steve Ellcey <sje@gcc.gnu.org> | 2009-08-27 22:35:16 +0000 |
commit | 715fda9936b139b8f405736e3ddd29cf53a98931 (patch) | |
tree | 3b4657f26aa4064cd2f078405b13206c9e7ee856 | |
parent | 2711df1855c196f14231e6089d0eda50c60d02c8 (diff) | |
download | gcc-715fda9936b139b8f405736e3ddd29cf53a98931.zip gcc-715fda9936b139b8f405736e3ddd29cf53a98931.tar.gz gcc-715fda9936b139b8f405736e3ddd29cf53a98931.tar.bz2 |
hpux.h (LIB_SPEC): Add -lrt for when using -pthread -fopenmp
2009-08-27 Steve Ellcey <sje@cup.hp.com>
* config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
using -pthread -fopenmp
From-SVN: r151151
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/ia64/hpux.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dad6bb9..8b0a6af 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-08-27 Steve Ellcey <sje@cup.hp.com> + + * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when + using -pthread -fopenmp + 2009-08-27 Gerald Pfeifer <gerald@pfeifer.com> * doc/service.texi (service directory): Update URL. diff --git a/gcc/config/ia64/hpux.h b/gcc/config/ia64/hpux.h index e91d134..4a3a40f 100644 --- a/gcc/config/ia64/hpux.h +++ b/gcc/config/ia64/hpux.h @@ -86,7 +86,7 @@ do { \ #undef LIB_SPEC #define LIB_SPEC \ "%{!shared: \ - %{mt|pthread:-lpthread} \ + %{mt|pthread:%{fopenmp:-lrt} -lpthread} \ %{p:%{!mlp64:-L/usr/lib/hpux32/libp} \ %{mlp64:-L/usr/lib/hpux64/libp} -lprof} \ %{pg:%{!mlp64:-L/usr/lib/hpux32/libp} \ |