1 |
|
BUILDING A NATIVE WIN32 GNU COMMON LISP (DRAFT ONLY) |
2 |
|
|
3 |
|
TOOLS |
4 |
|
|
5 |
|
- Mingw32 Windows native gcc from Source Forge. |
6 |
|
I used the latest version (1.1), although this is probably not important. |
7 |
|
|
8 |
|
- Cygwin from Redhat. This supplies the configuration and build environment. |
9 |
|
The latest version is probably best. |
10 |
|
|
11 |
|
- Source code for GCL. |
12 |
|
|
13 |
|
|
14 |
|
SETUP |
15 |
|
|
16 |
|
- Install Cygwin and Mingw32. |
17 |
|
|
18 |
|
- After installing Cygwin, set your Bash path so that Mingw32 is first eg: |
19 |
|
|
20 |
|
export PATH=/c/mingw32/bin:${PATH} |
21 |
|
|
22 |
|
This means that Mingw32 gcc is used for the build, enabling a proper |
23 |
|
native Win32 build, not dependent on the Cygwin runtime. |
24 |
|
|
25 |
|
- Make sure that Cygwin make is in the path, not Mingw32 make. |
26 |
|
|
27 |
|
|
28 |
|
BUILDING |
29 |
|
|
30 |
|
- Change to your GCL source directory eg: |
31 |
|
|
32 |
|
cd c:/cvs/gcl |
33 |
|
|
34 |
|
Ensure that the colon format is used for the path, NOT "/c/cvs/gcl". This |
35 |
|
allows the configure script to properly set the GCLDIR makefile macro, |
36 |
|
which finds it's way into the final GCL executable. If the Cygwin format |
37 |
|
is used, you'll have startup problems as native executables don't understand |
38 |
|
that format (forward slashes are OK however). |
39 |
|
|
40 |
|
- Make sure that "cp" is used instead of "ln" in the gmp library build by |
41 |
|
setting all occurrences of ac_cv_prog_LN_S="cp -p" in gmp/configure. |
42 |
|
|
43 |
|
Mingw32 tools don't know about Cygwin symbolic links (nor should they). |
44 |
|
|
45 |
|
- We are now ready to configure: |
46 |
|
|
47 |
|
./configure --enable-machine=mingw --prefix="f:/lang/gclcvs" >& con.log |
48 |
|
|
49 |
|
Change the prefix directory as required for your final installation path. |
50 |
|
Note that it is helpful to redirect output from configure and make into log |
51 |
|
files for future debugging and checking. |
52 |
|
|
53 |
|
- Check the log. If all is well, type: |
54 |
|
|
55 |
|
make >& make.log |
56 |
|
|
57 |
|
- The "saved_gcl.exe" should turn up eventually in the unixport directory. |
58 |
|
|
59 |
|
- To install: |
60 |
|
|
61 |
|
make install >& install.log |
62 |
|
|
63 |
|
|
64 |
|
Mike Thomas, 23 March 2002 |
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
================================================================== |
69 |
|
HISTORICAL VERSION (IGNORE FOR CURRENT MINGW32 BUILDS) |
70 |
|
================================================================== |
71 |
|
|
72 |
GCL 2.3.8 compiles for MS windows win32 under mingw. |
GCL 2.3.8 compiles for MS windows win32 under mingw. |
73 |
The mingw version of GCC comes equipped with include files |
The mingw version of GCC comes equipped with include files |