hi all,
attached are the two remaining makefile fixes for cygwin, that work
around the problem that the path separator on windows is different from
the path separator used on linux, so that a bootclasspath of
../lib:../lib/glibj.zip for javac results in a build failure on Cygwin.
I've fixed that by removing the ../lib part of it, and I'd like to hear
from the developers using flat class files (i.e. not building glibj.zip)
if the patches work for them, too.
If they don't, I assume we'll need to rework the classpath build system
a fair bit to introduce platform dependent path separators and use them
throughout the makefiles.
cheers,
dalibor topic
--- examples/Makefile.am 11 Jan 2007 22:13:23 -0000 1.20
+++ examples/Makefile.am 24 Jun 2007 20:38:25 -0000
@@ -1,5 +1,5 @@
## Input file for automake to generate the Makefile.in used by configure
-GLIBJ_CLASSPATH='$(top_builddir)/lib':'$(top_builddir)/lib/glibj.zip':'$(top_builddir)/tools/tools.zip'
+GLIBJ_CLASSPATH='$(top_builddir)/lib/glibj.zip'
# Setup the compiler to use the GNU Classpath library we just build
#if FOUND_GCJ
@@ -12,7 +12,7 @@
JCOMPILER = $(ECJ) -1.5 -encoding UTF-8
-warn:-deprecation,serial,typeHiding,unchecked,unused,varargsCast
-bootclasspath $(GLIBJ_CLASSPATH) -classpath .
else
if FOUND_JAVAC
-JCOMPILER = $(JAVAC) -encoding UTF-8 -bootclasspath $(GLIBJ_CLASSPATH)
-classpath .
+JCOMPILER = $(JAVAC) -encoding UTF-8 -bootclasspath $(GLIBJ_CLASSPATH)
-classpath '$(top_builddir)/tools/tools.zip'
else
error dunno how to setup the JCOMPILER and compile
#endif
Index: m4/acinclude.m4
===================================================================
RCS file: /sources/classpath/classpath/m4/acinclude.m4,v
retrieving revision 1.18
--- tools/Makefile.am 21 Jun 2007 21:54:44 -0000 1.40
+++ tools/Makefile.am 24 Jun 2007 20:38:43 -0000
@@ -1,6 +1,6 @@
## Input file for automake to generate the Makefile.in used by configure
-GLIBJ_BOOTCLASSPATH='$(top_builddir)/lib':'$(top_builddir)/lib/glibj.zip'
+GLIBJ_BOOTCLASSPATH='$(top_builddir)/lib/glibj.zip'
GLIBJ_CLASSPATH=asm
# Setup the compiler to use the GNU Classpath library we just built.
@@ -8,7 +8,7 @@
JCOMPILER = $(ECJ) -1.5 -encoding UTF-8
-warn:-deprecation,serial,typeHiding,unchecked,unused,varargsCast
-bootclasspath $(GLIBJ_BOOTCLASSPATH) -classpath .:$(GLIBJ_CLASSPATH)
else
if FOUND_JAVAC
-JCOMPILER = $(JAVAC) -encoding UTF-8 -bootclasspath $(GLIBJ_BOOTCLASSPATH)
-classpath .:$(GLIBJ_CLASSPATH)
+JCOMPILER = $(JAVAC) -encoding UTF-8 -bootclasspath $(GLIBJ_BOOTCLASSPATH)
-classpath $(GLIBJ_CLASSPATH)
else
error dunno how to setup the JCOMPILER and compile
endif