[libgomp] Link libgomp with -lpthread on FreeBSD

Jakub Jelinek jakub@redhat.com
Sun Jan 16 14:03:00 GMT 2011


On Sat, Jan 15, 2011 at 10:28:51PM +0100, Gerald Pfeifer wrote:
> Ping.  Can anyone please approve this so that GCC 4.6.0 and the
> next release of GCC 4.5 at least will see this fixed?

Ok with proper ChangeLog entry.

> > Index: configure.tgt
> > ===================================================================
> > --- configure.tgt	(revision 168391)
> > +++ configure.tgt	(working copy)
> > @@ -124,6 +124,12 @@
> >  	config_path="bsd posix"
> >  	;;
> >  
> > +  *-*-freebsd*)
> > +	# Need to link with -lpthread so libgomp.so is self-contained.
> > +	XLDFLAGS="${XLDFLAGS} -lpthread"
> > +	;;
> > +
> >    mips-sgi-irix6*)
> >  	# Need to link with -lpthread so libgomp.so is self-contained.
> >  	XLDFLAGS="${XLDFLAGS} -lpthread"

	Jakub



More information about the Gcc-patches mailing list