This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: Jikes goes open source



Stipe Tolj <tolj@uni-duesseldorf.de> writes:
> 
> That's definitly good news, since I have we have successfully compiled
> Jikes under Cygwin. Many thanks to Mumit who has been contributing.

In case I forgot the send the trivial patch, here it is:

Index: src/ChangeLog
===================================================================
RCS file: /home/khan/src/gnu/CVSROOT/jikes/src/ChangeLog,v
retrieving revision 1.1.1.1
diff -u -3 -p -r1.1.1.1 ChangeLog
--- src/ChangeLog	1999/02/12 03:35:41	1.1.1.1
+++ src/ChangeLog	1999/02/12 03:56:22
@@ -1,3 +1,9 @@
+Thu Feb 11 21:54:47 1999  Mumit Khan  <khan@xraylith.wisc.edu>
+
+	* Makefile: Provide Cygwin definitions.
+	* config.h: Cygwin runtime lacks wide character string routines.
+	* config.cpp: Likewise.
+
 1999-02-02    <shields@jikes.watson.ibm.com>
 
 	* symbol.h (class MethodSymbol): 
Index: src/Makefile
===================================================================
RCS file: /home/khan/src/gnu/CVSROOT/jikes/src/Makefile,v
retrieving revision 1.1.1.1
diff -u -3 -p -r1.1.1.1 Makefile
--- src/Makefile	1999/02/12 03:35:41	1.1.1.1
+++ src/Makefile	1999/02/12 03:42:17
@@ -131,6 +131,21 @@ LDFLAGS=-L. -o$(EXECUTABLE)
 O=o
 SYSOBJECTS=
 
+# g++ definitions (Cygwin B20+)
+CC=g++
+# use -W to see warnings (should review from time to time)
+CCREQUIREDFLAGS=-DUNIX -funsigned-char  -c -DTYPE_bool -ansi 
+CCDEBUGFLAGS=-DTEST -g
+CCOPTFLAGS=-O
+CCFLAGS=$(CCREQUIREDFLAGS) $(CCDEBUGFLAGS)
+CCFLAGS=$(CCREQUIREDFLAGS) $(CCOPTFLAGS)
+ERASE=rm -f
+EXECUTABLE=jikes.exe
+LD=g++
+LDDEBUGFLAGS=-g
+LDFLAGS=-L. -o$(EXECUTABLE)
+O=o
+SYSOBJECTS=
 
 OBJECTS=jikes.$(O) scanner.$(O) code.$(O) zip.$(O) unzip.$(O) ast.$(O) diagnose.$(O) \
 	parser.$(O) lpginput.$(O) lcase.$(O) javaact.$(O) error.$(O) set.$(O) symbol.$(O) \
Index: src/config.cpp
===================================================================
RCS file: /home/khan/src/gnu/CVSROOT/jikes/src/config.cpp,v
retrieving revision 1.1.1.1
diff -u -3 -p -r1.1.1.1 config.cpp
--- src/config.cpp	1999/02/12 03:35:41	1.1.1.1
+++ src/config.cpp	1999/02/12 03:37:52
@@ -282,7 +282,7 @@ char StringConstant::U8S_B[] = {U_B,U_NU
 #endif  
 
 
-#if defined(GNU_LIBC5)
+#if defined(GNU_LIBC5) || defined(__CYGWIN__)
 #include <sys/stat.h>
 #ifndef UNIX
     int SystemMkdir(char *dirname)
Index: src/config.h
===================================================================
RCS file: /home/khan/src/gnu/CVSROOT/jikes/src/config.h,v
retrieving revision 1.1.1.1
diff -u -3 -p -r1.1.1.1 config.h
--- src/config.h	1999/02/12 03:35:41	1.1.1.1
+++ src/config.h	1999/02/12 03:37:40
@@ -454,7 +454,7 @@ extern int SystemIsDirectory(char *name)
 #endif
 
 
-#if defined(GNU_LIBC5)
+#if defined(GNU_LIBC5) || defined(__CYGWIN__)
     extern size_t wcslen(wchar_t *);
     extern wchar_t *wcscpy(wchar_t *, wchar_t *);
     extern wchar_t *wcsncpy(wchar_t *, wchar_t *, int);

Regards,
Mumit