summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authordaney <daney@138bc75d-0d04-0410-961f-82ee72b054a4>2006-03-08 20:22:02 +0000
committerdaney <daney@138bc75d-0d04-0410-961f-82ee72b054a4>2006-03-08 20:22:02 +0000
commit33e6be9f514a2fa4c58182eb9ac0e69f37416c11 (patch)
treefc5ef5f6ebf569aaecd0b3045638dddadea250dd /gcc
parent352ea6ae2fd5eb4c0fc5cee58e0e325bc7fc6613 (diff)
downloadppe42-gcc-33e6be9f514a2fa4c58182eb9ac0e69f37416c11.tar.gz
ppe42-gcc-33e6be9f514a2fa4c58182eb9ac0e69f37416c11.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111847 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/java/ChangeLog4
-rw-r--r--gcc/java/gcj.texi14
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 49bfd3df374..d80ff952754 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,7 @@
+2006-03-08 David Daney <ddaney@avtrex.com>
+
+ * gcj.texi: Document -static-libgcj option.
+
2006-02-20 Andrew Haley <aph@redhat.com>
* jcf-parse.c (parse_class_file): Set input_location from
diff --git a/gcc/java/gcj.texi b/gcc/java/gcj.texi
index 84e0e167288..84659a54bdc 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
OpenPOWER on IntegriCloud