From: Steve Ellcey Date: Thu, 27 Aug 2009 22:35:16 +0000 (+0000) Subject: hpux.h (LIB_SPEC): Add -lrt for when using -pthread -fopenmp X-Git-Tag: releases/gcc-4.5.0~3813 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=715fda9936b139b8f405736e3ddd29cf53a98931;p=thirdparty%2Fgcc.git hpux.h (LIB_SPEC): Add -lrt for when using -pthread -fopenmp 2009-08-27 Steve Ellcey * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when using -pthread -fopenmp From-SVN: r151151 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dad6bb99cf44..8b0a6af99713 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-08-27 Steve Ellcey + + * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when + using -pthread -fopenmp + 2009-08-27 Gerald Pfeifer * doc/service.texi (service directory): Update URL. diff --git a/gcc/config/ia64/hpux.h b/gcc/config/ia64/hpux.h index e91d1340e8a5..4a3a40f4bedc 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} \