aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/gcj.texi
diff options
context:
space:
mode:
authorDavid Daney <ddaney@avtrex.com>2006-03-08 20:22:02 +0000
committerDavid Daney <daney@gcc.gnu.org>2006-03-08 20:22:02 +0000
commitd6c122f73bdb73f53e4ebf913e5c0e402860f429 (patch)
treefc5ef5f6ebf569aaecd0b3045638dddadea250dd /gcc/java/gcj.texi
parentdedfa46611c491d61ad880f0728068f5a7127f89 (diff)
downloadgcc-d6c122f73bdb73f53e4ebf913e5c0e402860f429.zip
gcc-d6c122f73bdb73f53e4ebf913e5c0e402860f429.tar.gz
gcc-d6c122f73bdb73f53e4ebf913e5c0e402860f429.tar.bz2
gcj.texi: Document -static-libgcj option.
gcc/java/ 2006-03-08 David Daney <ddaney@avtrex.com> * gcj.texi: Document -static-libgcj option. libjava/ 2006-03-08 David Daney <ddaney@avtrex.com> * configure.ac (LD): Add AC_CHECK_TOOL for ld. (LD_START_STATIC_SPEC): New AC_SUBST, set with ld check. (LD_FINISH_STATIC_SPEC): Ditto * configure: Regenerated. * libgcj.spec.in: Wrap -lgcj in LD_START_STATIC_SPEC and LD_FINISH_STATIC_SPEC. From-SVN: r111847
Diffstat (limited to 'gcc/java/gcj.texi')
-rw-r--r--gcc/java/gcj.texi14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/java/gcj.texi b/gcc/java/gcj.texi
index 84e0e16..84659a54 100644
--- a/gcc/java/gcj.texi
+++ b/gcc/java/gcj.texi
@@ -420,6 +420,20 @@ Create an application whose command-line processing is that
of the @code{gij} command.
This option is an alternative to using @code{--main}; you cannot use both.
+
+@item -static-libgcj
+This option causes linking to be done against a static version of the
+libgcj runtime library. This option is only available if
+corresponding linker support exists.
+
+@strong{Caution:} Static linking of libgcj may cause essential parts
+of libgcj to be omitted. Some parts of libgcj use reflection to load
+classes at runtime. Since the linker does not see these references at
+link time, it can omit the referred to classes. The result is usually
+(but not always) a @code{ClassNotFoundException} being thrown at
+runtime. Caution must be used when using this option. For more
+details see:
+@w{@uref{http://gcc.gnu.org/wiki/Statically%20linking%20libgcj}}
@end table
@node Code Generation