This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch, committed] Fix libgomp tests on IA64 HP-UX (add -lrt)
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 27 Aug 2009 15:34:03 -0700 (PDT)
- Subject: [patch, committed] Fix libgomp tests on IA64 HP-UX (add -lrt)
- Reply-to: sje at cup dot hp dot com
This patch fixes a bunch of unsats for various sem_* routines when using
-pthread -fopenmp. It matches what we already do for PA HP-UX compiles.
Tested on IA64 HP-UX and committed.
Steve Ellcey
sje@cup.hp.com
2009-08-27 Steve Ellcey <sje@cup.hp.com>
* config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
using -pthread -fopenmp
Index: config/ia64/hpux.h
===================================================================
--- config/ia64/hpux.h (revision 151135)
+++ config/ia64/hpux.h (working copy)
@@ -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} \