This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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: Patch to enable libgcj.dll for MinGW


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.


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