OSDN Git Service

2009-08-27 Steve Ellcey <sje@cup.hp.com>
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Aug 2009 22:35:16 +0000 (22:35 +0000)
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Aug 2009 22:35:16 +0000 (22:35 +0000)
* config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
using -pthread -fopenmp

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151151 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/ia64/hpux.h

index dad6bb9..8b0a6af 100644 (file)
@@ -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.
index e91d134..4a3a40f 100644 (file)
@@ -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} \