1 http://www.cygnus.com/ml/gnu-win32/1998-Nov/0177.html
3 Building cross cygwin b20 tools [Re: Linux->Win32 cross
6 Mumit Khan (khan@xraylith.wisc.edu)
7 Wed, 4 Nov 1998 09:38:23 -0600 (CST)
9 Messages sorted by: [ date ][ thread ][ subject ][ author ]
10 Next message: Austin David France: "RE: B20 & bash 2.02.1(2) broken"
11 Previous message: Neil Schemenauer: "Bash exits after background command exits (B20)"
12 In reply to: Felix E. Klee: "Linux->Win32 cross compiler ?"
13 Next in thread: Peter Dalgaard BSA: "Re: Linux->Win32 cross compiler ?"
15 On Mon, 2 Nov 1998, Felix E. Klee wrote:
19 > does anyone know if a cross compiler exists for Linux which
20 > creates Win32 executables just like gnuwin32 does?
23 ============ building CROSS
25 You can always build one yourself. Download the CDK source, and do the
30 $ tar zxvf /tmp/dev-src.tar.gz
34 $ ../configure --prefix=/usr/local/cygb20 --target=i386-cygwin32 -v
35 $ make > make.log 2>&1
36 [ check for errors . If OK ]
37 $ make install > install.log 2>&1
39 After you're done, add it to path (if you're using a bourne-shell
40 compatible, otherwise use csh syntax).
42 $ export PATH=$PATH:/usr/local/cygb20/bin
43 $ i386-cygwin32-gcc -v
44 [ should report egcs-1.1 etc ]
46 All the binaries for i386-cygwin32 target are prefixed with i386-cygwin32-
49 ============ building NATIVE tools using CROSS tools just built.
51 Now if you want to build native tools on eg., a i686-pc-linux-gnu box with
52 the same pathnames that wCygnus uses:
57 $ ../configure --prefix=/Cygnus/cygwin-b20 \
58 --exec-prefix=/Cygnus/cygwin-b20/H-i586-cygwin32 \
59 --target=i386-cygwin32 --host=i386-cygwin32 \
60 --build=i686-pc-linux-gnu -v
61 $ make > make.log 2>&1
62 [ check for errors . If OK ]
64 Now of course, you want to install it to a *DIFFERENT* location than
65 /Cygnus/cygwin-b20 on your Unix host before creating an archive to
66 copy to a Cygwin box. Let's say you first install it to /tmp/cygwin.
68 $ make prefix=/tmp/cygwin exec_prefix=/tmp/cygwin/H-i586-cygwin32 \
69 install > install.log 2>&1
71 $ tar zcvf /tmp/dev-cygwin-b20.tar.gz .
73 Copy /tmp/dev-cygwin-b20.tar.gz to your Cygwin box and unpack:
75 [win32]$ cd /Cygnus/cygwin-b20
76 [win32]$ tar zxvf /tmp/dev-cygwin-b20.tar.gz
83 For help on using this list (especially unsubscribing), send a message to
84 "gnu-win32-request@cygnus.com" with one line of text: "help".