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: GCJ with native structs


Do not disable this unless you are 110% sure you know what you're
doing.  The errors you get when it is disabled are subtle, erratic,
and nondeterministic.

If you can tell me where the other _CRT_MT is coming from, I might be
able to help.

  - a


Bryce McKinlay <bryce@mckinlay.net.nz> writes:
> The first one is win32 specific. Have a look at this code in win32.cc:
> 
> // The following definitions "fake out" mingw to think that -mthreads
> // was enabled and that mingwthr.dll was linked. GCJ-compiled
> // applications don't need this helper library because we can safely
> // detect thread death (return from Thread.run()).
> 
> int _CRT_MT = 1;
> 
> It was introduced by:
> 
> 2002-03-09  Adam Megacz  <adam@xwt.org>
> 
>          * win32.cc (_CRT_MT, __mingwthr_key_dtor) Added fake
>          definitions to simulate -mthreads.

-- 
"If Darl McBride [the CEO of SCO, who claims the GPL 'destroys
 intellectual property'] was in charge, he'd probably make marriage
 unconstitutional too, since clearly it de-emphasizes the commercial
 nature of normal human interaction, and probably is a major
 impediment to the commercial growth of prostitution"

                                             -- Linus Torvalds


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