re PR libgomp/25936 (libgomp needs to link against rt on HPUX)
authorRoger Sayle <roger@eyesopen.com>
Mon, 13 Feb 2006 02:33:37 +0000 (02:33 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Mon, 13 Feb 2006 02:33:37 +0000 (02:33 +0000)
2006-02-12  Roger Sayle  <roger@eyesopen.com>
    John David Anglin  <dave@hiauly1.hia.nrc.ca>

PR libgomp/25936
* configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.

Co-Authored-By: John David Anglin <dave@hiauly1.hia.nrc.ca>
From-SVN: r110908

libgomp/ChangeLog
libgomp/configure.tgt

index de35c56384157c04c789a5894f89ee4f439edebc..260d9680dc08a4dff75934d40e0250dd68020058 100644 (file)
@@ -1,3 +1,9 @@
+2006-02-12  Roger Sayle  <roger@eyesopen.com>
+           John David Anglin  <dave@hiauly1.hia.nrc.ca>
+
+       PR libgomp/25936
+       * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
index f9679debc25df46bbe624fc89f86beefab28eb0c..dedafd350aad16b8dc00a8853d5e9ae3d2b91694 100644 (file)
@@ -86,6 +86,11 @@ fi
 # Other system configury
 case "${target}" in
 
+  *-*-hpux11*)
+       # HPUX v11.x requires -lrt to resolve sem_init in libgomp.la
+       XLDFLAGS="${XLDFLAGS} -lrt"
+       ;;
+
   *)
        ;;