This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [libgomp] PR25936: Link against -lrt on HPUX
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: roger at eyesopen dot com (Roger Sayle)
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 10 Feb 2006 14:36:39 -0500 (EST)
- Subject: Re: [libgomp] PR25936: Link against -lrt on HPUX
> * configure.tgt: Link against -lrt for sem_init on HPUX systems.
>
>
> Index: configure.tgt
> ===================================================================
> --- configure.tgt (revision 110050)
> +++ configure.tgt (working copy)
> @@ -86,6 +86,11 @@
> # Other system configury
> case "${target}" in
>
> + *-*-hpux*)
> + # HPUX requires -lrt to resolve sem_init in libgomp.la
Looking at this again, I see than that HPUX 10 has the symbols in
both libc and libc_r. Thus, the above needs to be restricted to
HPUX 11 and later.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)