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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrew Haley wrote:
> 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.

You might want to see:

  http://gcc.gnu.org/ml/java-patches/2005-q2/msg00097.html

and other messages in that thread.

Ranjit.

- --
Ranjit Mathew       Email: rmathew AT gmail DOT com

Bangalore, INDIA.     Web: http://ranjitmathew.hostingzero.com/




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDHfKdYb1hx2wRS48RAptJAJoDu2LS2YIuweMScDkvOup5xNObrQCbBDo9
zC2Bn9UrVjXAcxvkJR1fP4k=
=o7qu
-----END PGP SIGNATURE-----


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