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]

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)


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