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: FYI: Updated "Building GCJ for Windows"


>>>>> "Marco" == Marco Trudel <mtrudel@gmx.ch> writes:

Marco> The make fails somewhere in the middle because fastjar is missing (it's
Marco> in PATH). So I copy it to buildDir/i686-pc-mingw32/libjava before
Marco> "make"ing gcc...

Weird, at least with svn trunk, jar should be found in the path.

[resource files]
>> I'm afraid this problem is going to get worse.  The current plan is
>> to break out all the locale-related resources into property files
>> instead of classes.
>> The ideal thing here would be to have DLL support for Windows.  I
>> haven't really kept track of the status of this.

Marco> Is it still possible to add them to the binary? Actually I preferr
Marco> having a 3 to 4 mb standalone binary instead of a directory with a
Marco> couple of dlls or libraries (on linux and windows).

With static linking you will lose, because nothing pull the resource
file into the final executable... a resource is registered via a
static constructor and the resource object file doesn't have external
symbols to hook onto (unlike classes...).

It is probably possible to work around this somehow, say by extracting
locale property files from libgcj.jar and compiling them into a .o
that you ship with your application.

Making libgcj into a DLL would do it, too, but it sounds like this
isn't what you want.

Tom


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