1*c8a0e2f4SThomas Veerman$NetBSD: README,v 1.12 2005/04/05 00:21:22 jmc Exp $ 2*c8a0e2f4SThomas Veerman 3*c8a0e2f4SThomas VeermanSpecial notes for cross-hosting a NetBSD build on certain platforms. 4*c8a0e2f4SThomas VeermanOnly those platforms which have been tested to complete a "build.sh" run 5*c8a0e2f4SThomas Veermanare listed. 6*c8a0e2f4SThomas Veerman 7*c8a0e2f4SThomas VeermanAll hosts must have a POSIX compatible sh. /bin/sh is assumed unless 8*c8a0e2f4SThomas Veermanotherwise set. This can be overridden by setting HOST_SH in the environment. 9*c8a0e2f4SThomas Veerman 10*c8a0e2f4SThomas VeermanIn addition all hosts must provide the following local tools: 11*c8a0e2f4SThomas Veerman 12*c8a0e2f4SThomas Veermangzip 13*c8a0e2f4SThomas Veerman 14*c8a0e2f4SThomas Veerman===== 15*c8a0e2f4SThomas Veerman 16*c8a0e2f4SThomas VeermanNetBSD: 17*c8a0e2f4SThomas Veerman 18*c8a0e2f4SThomas Veerman* _NETBSD_SOURCE is *not* to be defined/pulled in during compat/tools builds. 19*c8a0e2f4SThomas Veerman compat_defs.h will error out if it finds it defined. 20*c8a0e2f4SThomas Veerman 21*c8a0e2f4SThomas VeermanHP-UX: 22*c8a0e2f4SThomas Veerman 23*c8a0e2f4SThomas Veerman* zlib must be available. 24*c8a0e2f4SThomas Veerman This will be fixed in the future to include zlib in libnbcompat. 25*c8a0e2f4SThomas Veerman 26*c8a0e2f4SThomas Veerman===== 27*c8a0e2f4SThomas Veerman 28*c8a0e2f4SThomas VeermanLINUX: 29*c8a0e2f4SThomas Veerman 30*c8a0e2f4SThomas Veerman* Tested on RedHat Linux 7.1 (i386). 31*c8a0e2f4SThomas Veerman Tested on RedHat Linux 7.3 (i686) on 16 Sep 2002. Requires "LANG=C" 32*c8a0e2f4SThomas Veerman in the environment. 33*c8a0e2f4SThomas Veerman 34*c8a0e2f4SThomas Veerman* Tested on Redhat Linux 8.0 (i686) in Fall 2003. Requires no special settings. 35*c8a0e2f4SThomas Veerman 36*c8a0e2f4SThomas Veerman* Tested on Redhat ES3 and AS3 in spring of 2004. Requires no special settings. 37*c8a0e2f4SThomas Veerman 38*c8a0e2f4SThomas Veerman* The gcc (and libstdc++, if needed) package must be installed, along 39*c8a0e2f4SThomas Veerman with the typical system development packages (glibc-devel, etc.). 40*c8a0e2f4SThomas Veerman 41*c8a0e2f4SThomas Veerman* The ncurses-devel package must be installed (for nbinfo). 42*c8a0e2f4SThomas Veerman 43*c8a0e2f4SThomas Veerman* The zlib and zlib-devel packages must be installed. This will be 44*c8a0e2f4SThomas Veerman fixed in the future to include zlib in libnbcompat. 45*c8a0e2f4SThomas Veerman 46*c8a0e2f4SThomas Veerman===== 47*c8a0e2f4SThomas Veerman 48*c8a0e2f4SThomas VeermanMACOS 49*c8a0e2f4SThomas Veerman Requires a case sensitive filesystem such as UFS 50*c8a0e2f4SThomas Veerman 51*c8a0e2f4SThomas Veerman* Tested on 10.2.8 with Dec 2002 Developer Tools 52*c8a0e2f4SThomas Veerman - may require a fix to /usr/bin/join, netbsd's join should work fine 53*c8a0e2f4SThomas Veerman* Tested on 10.3 with xcode 1.5 54*c8a0e2f4SThomas Veerman - compiles fine out of the box 55*c8a0e2f4SThomas Veerman 56*c8a0e2f4SThomas Veerman===== 57*c8a0e2f4SThomas Veerman 58*c8a0e2f4SThomas VeermanNETBSD (earlier releases): 59*c8a0e2f4SThomas Veerman 60*c8a0e2f4SThomas Veerman* Tested on NetBSD 1.5.2 (machine-independently). 61*c8a0e2f4SThomas Veerman 62*c8a0e2f4SThomas Veerman* Should need no special setup. 63*c8a0e2f4SThomas Veerman 64*c8a0e2f4SThomas Veerman===== 65*c8a0e2f4SThomas Veerman 66*c8a0e2f4SThomas VeermanSOLARIS: 67*c8a0e2f4SThomas Veerman 68*c8a0e2f4SThomas Veerman* Tested on Solaris/x86 8 (5.8) with gcc 2.95.2 and Solaris/sparc 8 (5.8) 69*c8a0e2f4SThomas Veerman with gcc 3.2 (not yet tested with SUNWspro). 70*c8a0e2f4SThomas Veerman 71*c8a0e2f4SThomas Veerman* $HOST_CC needs to be set properly (for gcc, it should be set to "gcc", 72*c8a0e2f4SThomas Veerman otherwise the improper /usr/ucb/cc may be invoked by accident). 73*c8a0e2f4SThomas Veerman 74*c8a0e2f4SThomas Veerman* The SUNWzlib package (or a built version of zlib visible to $HOST_CC, 75*c8a0e2f4SThomas Veerman such as SMCzlib from sunfreeware.com) must be installed. This will be 76*c8a0e2f4SThomas Veerman fixed in the future to include zlib in libnbcompat. 77*c8a0e2f4SThomas Veerman 78*c8a0e2f4SThomas Veerman* Needs the following paths, in this order, in $PATH: 79*c8a0e2f4SThomas Veerman 80*c8a0e2f4SThomas Veerman /usr/xpg4/bin 81*c8a0e2f4SThomas Veerman /usr/ccs/bin 82*c8a0e2f4SThomas Veerman <path to host C and C++ compilers> 83*c8a0e2f4SThomas Veerman /usr/bin 84*c8a0e2f4SThomas Veerman 85*c8a0e2f4SThomas Veerman /usr/ucb may optionally be placed before /usr/bin, per your preference, 86*c8a0e2f4SThomas Veerman but /usr/ucb *MUST NOT* be before /usr/ccs/bin or before the path to 87*c8a0e2f4SThomas Veerman the host C and C++ compilers. 88