]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
hpux.h (LIB_SPEC): Add -lrt for when using -pthread -fopenmp
authorSteve Ellcey <sje@cup.hp.com>
Thu, 27 Aug 2009 22:35:16 +0000 (22:35 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Thu, 27 Aug 2009 22:35:16 +0000 (22:35 +0000)
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

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

index dad6bb99cf44d937b7f656e99da4abd412980568..8b0a6af99713d2c6a5d4793868fc7ca77f49fa86 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 e91d1340e8a5fa24ee518bd2e829278c7977a5ce..4a3a40f4bedcc68c0f9965b8e56b887d3604f710 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} \