summaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-06 01:46:46 +0000
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-06 01:46:46 +0000
commit95b4e938ced914e3ab00d12774dcb691126a02f5 (patch)
tree7c3ddbab3dae413c01d28f685e7f8496cd266879 /libjava
parent55bfeac3e5b4525bc17cfd1eca7da2a789fe656e (diff)
downloadgcc-95b4e938ced914e3ab00d12774dcb691126a02f5.tar.gz
* configure.in: Set up PLATFORMOBJS not PLATFORM_SPECIFIC_SOURCES.
Symlink PLATFORMH to platform.h. * Makefile.am (libgcj_la_DEPENDENCIES, libgcj_la_LIBADD): Add PLATFORMOBJS. * java/lang/natSystem.cc: #include platform.h not posix.h. * Makefile.in: Rebuilt with libgcj automake. * configure: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49534 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog10
-rw-r--r--libjava/Makefile.am7
-rw-r--r--libjava/configure.in15
-rw-r--r--libjava/java/lang/natSystem.cc2
4 files changed, 24 insertions, 10 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index a7e327d2a93..ef14272f479 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,13 @@
+2002-02-05 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
+
+ * configure.in: Set up PLATFORMOBJS not PLATFORM_SPECIFIC_SOURCES.
+ Symlink PLATFORMH to platform.h.
+ * Makefile.am (libgcj_la_DEPENDENCIES, libgcj_la_LIBADD): Add
+ PLATFORMOBJS.
+ * java/lang/natSystem.cc: #include platform.h not posix.h.
+ * Makefile.in: Rebuilt with libgcj automake.
+ * configure: Rebuilt.
+
2002-02-05 Richard Henderson <rth@redhat.com>
* Makefile.in: Undo munging last change.
diff --git a/libjava/Makefile.am b/libjava/Makefile.am
index e71a84f2cbc..16482bfe994 100644
--- a/libjava/Makefile.am
+++ b/libjava/Makefile.am
@@ -123,16 +123,17 @@ javao_files = $(java_source_files:.java=.lo) \
$(built_java_source_files:.java=.lo)
x_javao_files = $(x_java_source_files:.java=.lo)
-libgcj_la_SOURCES = prims.cc $(PLATFORM_SPECIFIC_SOURCES) jni.cc exception.cc \
+libgcj_la_SOURCES = prims.cc jni.cc exception.cc \
resolve.cc defineclass.cc interpret.cc name-finder.cc verify.cc \
$(nat_source_files)
EXTRA_libgcj_la_SOURCES = boehm.cc nogc.cc posix-threads.cc no-threads.cc \
+ win32-threads.cc posix.cc win32.cc \
$(c_source_files) $(java_source_files) $(built_java_source_files)
libgcj_la_DEPENDENCIES = libgcj.jar $(javao_files) \
- $(c_files) $(GCOBJS) $(THREADOBJS) $(LIBLTDL)
+ $(c_files) $(GCOBJS) $(THREADOBJS) $(PLATFORMOBJS) $(LIBLTDL)
libgcj_la_LIBADD = $(javao_files) $(c_files) $(GCOBJS) \
- $(THREADOBJS)
+ $(THREADOBJS) $(PLATFORMOBJS)
# Include THREADLIBS here to ensure that the correct version of
# certain linuxthread functions get linked:
libgcj_la_LDFLAGS = -rpath $(toolexeclibdir) $(THREADLIBS) $(LIBLTDL) \
diff --git a/libjava/configure.in b/libjava/configure.in
index 074a700e367..921c66876c3 100644
--- a/libjava/configure.in
+++ b/libjava/configure.in
@@ -193,27 +193,30 @@ AC_ARG_WITH(ecos,
TARGET_ECOS="$with_ecos"
)
-PLATFORM_SPECIFIC_SOURCES=
+PLATFORMOBJS=
case "$TARGET_ECOS" in
no) case "$host" in
mingw)
PLATFORM=Win32
- PLATFORM_SPECIFIC_SOURCES=win32.cc
+ PLATFORMOBJS=win32.lo
+ PLATFORMH=win32.h
;;
*)
PLATFORM=Posix
- PLATFORM_SPECIFIC_SOURCES=posix.cc
+ PLATFORMOBJS=posix.lo
+ PLATFORMH=posix.h
;;
esac
;;
*)
PLATFORM=Ecos
AC_DEFINE(ECOS)
- PLATFORM_SPECIFIC_SOURCES=posix.cc
+ PLATFORMOBJS=posix.lo
+ PLATFORMH=posix.h
;;
esac
-AC_SUBST(PLATFORM_SPECIFIC_SOURCES)
-
+AC_SUBST(PLATFORMOBJS)
+AC_LINK_FILES(include/$PLATFORMH, include/platform.h)
AC_EGREP_HEADER(uint32_t, stdint.h, AC_DEFINE(HAVE_INT32_DEFINED))
AC_EGREP_HEADER(uint32_t, inttypes.h, AC_DEFINE(HAVE_INT32_DEFINED))
diff --git a/libjava/java/lang/natSystem.cc b/libjava/java/lang/natSystem.cc
index e4c328c443c..faeff5107a1 100644
--- a/libjava/java/lang/natSystem.cc
+++ b/libjava/java/lang/natSystem.cc
@@ -14,7 +14,7 @@ details. */
#include <string.h>
#include <stdlib.h>
-#include "posix.h"
+#include "platform.h"
#ifdef HAVE_PWD_H
#include <pwd.h>