This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: [gomp merge] Stage 2: OpenMP for the Fortran front end (take 2)


On Fri, Feb 10, 2006 at 01:04:25PM -0500, Jakub Jelinek wrote:
> 
> > jakub and I have discussed.  The other failures are probably
> > due to FreeBSD's loader.  I'll pursue that issue on the FreeBSD
> > mailing lists.
> 
> libgomp.so.0 not linking against libpthread.so.* is indeed IMHO a FreeBSD
> bug.
> For FreeBSD 6+, there is:
> #define FBSD_LIB_SPEC "                                                 \
>   %{!shared:                                                            \
>     %{!pg: %{pthread:-lpthread} -lc}                                    \
>     %{pg:  %{pthread:-lpthread_p} -lc_p}                                \
>   }"
> #endif
> 
> This means that -pthread doesn't imply -lpthread for -shared.
> Can anyone from the FreeBSD crowd explain why it isn't
> %{pthread:-lpthread%{pg:_p}} %{!shared:-lc%{pg:_p}}
> or better yet, why isn't -lc linked in automatically as well for -shared?
> 

I don't know the answer.  I've forwarded the above question to
the FreeBSD-current mailing list.

-- 
Steve


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