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:
 > > Right, so we should disable it on PE targets.  Please submit a patch
 > > that does so.
 > 
 > I can agree to disagree at this point.  The patch will disable the
 > call to decompile_method if it is a PE target.  At the risk of
 > extending this thread by one more message, can someone provide the
 > proper target macro for this?

Interestingly, cygwin.h includes this:

/* Binutils does not handle weak symbols from dlls correctly.  For now,
   do not use them unnecessarily in gthr-posix.h.  */
#define GTHREAD_USE_WEAK 0

but mingw32 doesn't.  I assume that mingw32 binutils has exactly the
same bug, so this is perhaps a mistake.  Danny?

Anyway, I'd have no objection to 

#ifdef OBJECT_FORMAT_ELF

because it's only ELF targets where we're sure this works.

Andrew.


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