This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch, committed] Fix libgomp tests on IA64 HP-UX (add -lrt)


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} \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]