Patch to enable libgcj.dll for MinGW

Andrew Haley aph@redhat.com
Tue Sep 6 19:47:00 GMT 2005


TJ Laurenzo writes:
 > > Ah, no. Call supports_one_only().
 > I'm a bit confused by the comment on this function:
 > /* Returns 1 if the target configuration supports defining public symbols
 > so that one of them will be chosen at link time instead of generating a
 > multiply-defined symbol error, whether through the use of weak symbols or
 > a target-specific mechanism for having duplicates discarded. */
 > 
 > The macro this function depends on is defined=1 for ming/cygwin and a
 > handful of other targets, so it appears to be the correct one, but
 > reading the comment of this function actually makes me think the
 > inverse is true. In any case, assuming that either my understanding
 > or the function's comment is faulty, the new patch to gjavah.c is
 > below.
The comment is right. AFAIK, SUPPORTS_ONE_ONLY shouldn't be defined
for mingw/cygwin if one only definitions don't work.
I'll tink abit more about it. I'm pretty sure that there must be a
target macro that tells us what we need to know.
Andrew.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /