This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: [gcj-eclipse-merge-branch] MinGW ecj: Cross-built ecjx?!
- From: Tom Tromey <tromey at redhat dot com>
- To: gnustuff at thisiscool dot com
- Cc: Adam Megacz <adam at megacz dot com>, java at gcc dot gnu dot org
- Date: 06 Dec 2006 16:50:21 -0700
- Subject: Re: [gcj-eclipse-merge-branch] MinGW ecj: Cross-built ecjx?!
- References: <NM75C0F93QOB6BAWRXVDPNQPND0YW.45765098@d9300>
- Reply-to: tromey at redhat dot com
>>>>> "Mohan" == Mohan Embar <gnustuff@thisiscool.com> writes:
>> I see. And I guess there's no way to tell gij/libgcj (as opposed to
>> the actual compiler) to check getenv("CLASSPATH"). Bleh.
Mohan> There is a --classpath switch, but I'm not sure if you're allowed
Mohan> to override the boot classpath this way. Or maybe using GCJ_PROPERTIES?
Mohan> The Experts would know more about this....
Setting --classpath won't override the boot class path.
Also, if the boot class path is not set properly, and a class isn't compiled
in, having it on --classpath will cause it to be loaded by the wrong
class loader (system, not bootstrap), which may cause issues.
We do support overriding some built-in classes via endorsed dirs.
But overall I think you're better off with the --whole-archive plan
for gij.
Tom