[gomp merge] Stage 2: OpenMP for the Fortran front end (take 2)

Jakub Jelinek jakub@redhat.com
Fri Feb 10 18:04:00 GMT 2006


On Fri, Feb 10, 2006 at 09:09:29AM -0800, Steve Kargl wrote:
> I've bootstrapped on both i386 and amd64-*-freebsd.  The regression
> tests ran with only a few unexpected failures.  One of these, vla7.f90,

vla7.f90 I'll fix (by adding dg-warning and killing 2 functions).

> 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?

	Jakub



More information about the Gcc-patches mailing list