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]

Re: PATCH: Support the FreeBSD 5.0 system thread library model


On Fri, May 11, 2001 at 04:50:57PM -0500, Loren James Rittle wrote:
> I added the logic to key off the precise API change point; tested both

I considered a very simular patch, but will this be accepted?  It won't
build in a cross environment.  I think maybe we may have to set a knob in
configure for ``*-*-freebsd([5-9]|[5-9].*)''.  I would not care about
older versions of FreeBSD 5-CURRENT -- it is an in-development version
and if you're running it you are expected to be able to handle thinks
like this on your own.


>   #undef  LIB_SPEC
> + #include <osreldate.h>
> + #if __FreeBSD_version >= 500016
> + #define LIB_SPEC "                                                      \
> +   %{!shared:                                                            \
> +     %{!pg: %{pthread:-lc_r} -lc}                                        \
> +     %{pg:  %{pthread:-lc_r_p} -lc_p}                                    \
> +   }"
> + #else

-- 
-- David  (obrien@FreeBSD.org)


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