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-eclipse-merge-branch] MinGW ecj: Cross-built ecjx?!


>>>>> "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


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