diff options
author | Tom Tromey <tromey@redhat.com> | 2001-06-08 19:09:04 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2001-06-08 19:09:04 +0000 |
commit | 4c399c87ef6c1ad926fc039b89dff307119f7856 (patch) | |
tree | 3f63a3fe6e9b6e23f73ea21de01dbf07bc50a5aa /libjava/java | |
parent | acb5223fb5a7fb8cd6ea3cc12c6b25b6c6d5c920 (diff) | |
download | gcc-4c399c87ef6c1ad926fc039b89dff307119f7856.zip gcc-4c399c87ef6c1ad926fc039b89dff307119f7856.tar.gz gcc-4c399c87ef6c1ad926fc039b89dff307119f7856.tar.bz2 |
re PR libgcj/3059 (System doesn't set java.home property)
Fix for PR libgcj/3059:
* java/lang/natSystem.cc (init_properties): Define `java.home'.
* Makefile.in: Rebuilt.
* Makefile.am (AM_CXXFLAGS): Define PREFIX.
From-SVN: r43040
Diffstat (limited to 'libjava/java')
-rw-r--r-- | libjava/java/lang/natSystem.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libjava/java/lang/natSystem.cc b/libjava/java/lang/natSystem.cc index 57e135c..7fff337 100644 --- a/libjava/java/lang/natSystem.cc +++ b/libjava/java/lang/natSystem.cc @@ -320,8 +320,11 @@ java::lang::System::init_properties (void) SET ("java.specification.name", "Java(tm) Language Specification"); SET ("java.specification.vendor", "Sun Microsystems Inc."); - // FIXME: how to set this given location-independence? - // SET ("java.home", "FIXME"); + // This definition is rather arbitrary: we choose $(prefix). In + // part we do this because most people specify only --prefix and + // nothing else when installing gcj. Plus, people are free to + // redefine `java.home' with `-D' if necessary. + SET ("java.home", PREFIX); SET ("file.encoding", default_file_encoding); |