This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Next configuration patch for *-*-freebsd
Loren James Rittle wrote:
> > It seems to me from looking at gcc/config/freebsd.h that the
> > compiler should already be using -lc_r in the -pthread case, so
>
> [Yup, it surely does when -pthread was provided on the *command* line.
> But libjava is now hacking the lib spec behind the back of a port.
> It is unclear that this usage was ever considered when spec files
> were first designed.]
Yeah, it looks like you're right (I'm no expert on the spec language either).
Given that no-one else has spoken up and there doesn't seem to be any other
easy way to do it, your patch is okay for the trunk if you add a comment in
libgcj.spec.in explaining what is going on. Also, I think it would be better
to call the configure variable LIBSPEC instead of LIBORIG.
regards
[ bryce ]