[PATCH] Fix CLASSPATH separator on MinGW.
Aaron W. LaFramboise
aaronavay62@aaronwl.com
Tue Sep 28 17:08:00 GMT 2004
Windows uses a semicolon instead of a colon as the path separator,
including for CLASSPATH. This is because the colon has another meaning
as volume separator
This can be a difficult thing to autodetect. MinGW has the unusual
situation that Windows does not have intrinsic support for POSIX, so
some helper environment must be used, such as Cygwin or its
MinGW-specific variant MSYS. Cygwin generally does support a colon as a
path separator, and does not support the semicolon, and so tests that
detect whether a colon is the right path separator to use often won't do
the right thing when targetting MinGW.
So, it seems the right way to do this is just special-case the CLASSPATH
separator for MinGW. This patch is needed to allow mainline to
bootstrap on MinGW. I tested it on a native build of i686-pc-mingw32.
I have a copyright assignment, but no CVS access.
Aaron W. LaFramboise
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcc-mainline-20040928-classpath.patch
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040928/527cae5a/attachment.ksh>
More information about the Java-patches
mailing list