diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index eab2079b699fb51b7d1e27e4bc5963c045600e44..246d411384be9508680cff72b088f10be6e59e82 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -1,3 +1,7 @@
+2010-01-28  Steve Ellcey  <sje@cup.hp.com>
+
+	* configure.tgt (*-*-hpux*): Add -frandom-seed flag.
+
 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
 
 	* configure.ac: Test for executability of _the first word_ of GFORTRAN.
diff --git a/libgomp/configure.tgt b/libgomp/configure.tgt
index d66899fbf5f12795670c374823463dc420d505a8..427d8d3772dd28b7bf9668265291e2a849374992 100644
--- a/libgomp/configure.tgt
+++ b/libgomp/configure.tgt
@@ -97,9 +97,19 @@ fi
 # Other system configury
 case "${target}" in
 
-  *-*-hpux11*)
-	# HPUX v11.x requires -lrt to resolve sem_init in libgomp.la
-	XLDFLAGS="${XLDFLAGS} -lrt"
+  *-*-hpux*)
+	case "${target}" in
+	  *-*-hpux11*)
+	     # HPUX v11.x requires -lrt to resolve sem_init in libgomp.la
+	     XLDFLAGS="${XLDFLAGS} -lrt"
+	     ;;
+	esac
+	case "${target}" in
+	  hppa[12]*-*-hpux*)
+	    # PA 32 HP-UX needs -frandom-seed for bootstrap compare.
+	    XCFLAGS="${XCFLAGS} -frandom-seed=fixed-seed"
+	    ;;
+	esac
 	;;
 
   *-*-mingw32*)