--main and static libs
Jeff Sturm
jeff.sturm@appnet.com
Tue Jan 9 10:11:00 GMT 2001
With gcj, I often link executables with only --main and libs named on the
command line, e.g.:
gcj --main=tcl.lang.Shell -ljacl -o jaclsh
That works well only if libjacl is a shared object. If it is a static archive,
it fails to resolve tcl::lang::Shell::class$ because of the order gcj passes its
arguments to ld. My workaround is to run jvgenmain alone:
jvgenmain tcl.lang.Shell >jacl_main.c
gcj jacl_main.c -ljacl -o jaclsh
Anybody think this is a bug? I tried to look at it. Unfortunately I do not
understand what toplev.c is doing well enough.
--
Jeff Sturm
jeff.sturm@commerceone.com
More information about the Java
mailing list