NetBSD/tools/compat
uwe 0bbb587407 Add atoll(3) to libnbcompat. We need it when building target's gcc
for a 64-bit target on a 32-bit host.

NB: There seems to be a bug in either gcc itself or the way we import
it, b/c the incorrect #define HAVE_ATOLL is picked from (e.g. for
sparc64) gnu/usr.bin/gcc/arch/sparc64/auto-host.h - so when gen*
auxilary (host) programs are built in gnu/usr.bin/gcc/backend, they
incorrectly pick-up target's HAVE_ATOLL.

For now providing atoll(3) in libnbcompat is a simple and sufficient
workaround.
2003-06-03 03:16:48 +00:00
..
sys
ufs use reachover relative paths in compat include files instead of 2003-05-14 00:30:26 +00:00
compat_defs.h Add atoll(3) to libnbcompat. We need it when building target's gcc 2003-06-03 03:16:48 +00:00
compat_pwd.h
config.h.in Add a putc_unlocked(). 2003-03-14 03:38:42 +00:00
configure Add atoll(3) to libnbcompat. We need it when building target's gcc 2003-06-03 03:16:48 +00:00
configure.ac Add atoll(3) to libnbcompat. We need it when building target's gcc 2003-06-03 03:16:48 +00:00
db.h
defs.mk.in Add a new feature-test macro, _NETBSD_SOURCE. If this is defined 2003-04-28 23:16:11 +00:00
fgetln.c
flock.c
fts.h Always use NetBSD's fts(3) in compat builds. Some systems (notably 2002-09-16 04:10:36 +00:00
getmode.c
glob.h * Always include the NetBSD glob(3) in libnbcompat, as the host 2002-09-13 19:07:01 +00:00
issetugid.c
lchflags.c if target is not a symlink, silently succeed rather than failing with 2003-03-19 09:26:38 +00:00
lchmod.c if target is not a symlink, silently succeed rather than failing with 2003-03-19 09:26:38 +00:00
lchown.c if target is not a symlink, silently succeed rather than failing with 2003-03-19 09:26:38 +00:00
Makefile Add atoll(3) to libnbcompat. We need it when building target's gcc 2003-06-03 03:16:48 +00:00
md2.h * Always include the NetBSD glob(3) in libnbcompat, as the host 2002-09-13 19:07:01 +00:00
md4.h * Always include the NetBSD glob(3) in libnbcompat, as the host 2002-09-13 19:07:01 +00:00
md5.h * Always include the NetBSD glob(3) in libnbcompat, as the host 2002-09-13 19:07:01 +00:00
mpool.h
namespace.h
nl_types.h
pread.c
putc_unlocked.c FreeBSD #defines putc_unlocked in stdio.h, so guard against that also 2003-03-21 14:40:26 +00:00
pwrite.c
README It's "HP-UX" not "HP/UX". (Thanks Giles). 2002-09-29 07:05:28 +00:00
rmd160.h * Always include the NetBSD glob(3) in libnbcompat, as the host 2002-09-13 19:07:01 +00:00
setenv.c
setgroupent.c
setpassent.c
setprogname.c
sha1.h * Always include the NetBSD glob(3) in libnbcompat, as the host 2002-09-13 19:07:01 +00:00
snprintf.c
tzfile.h
vis.h * Always include the NetBSD glob(3) in libnbcompat, as the host 2002-09-13 19:07:01 +00:00

$NetBSD: README,v 1.8 2002/09/29 07:05:28 lukem Exp $

Special notes for cross-hosting a NetBSD build on certain platforms.  
Only those platforms which have been tested to complete a "build.sh" run
are listed.

=====

HP-UX:

* zlib must be available.
  This will be fixed in the future to include zlib in libnbcompat.

=====

LINUX:

* Tested on RedHat Linux 7.1 (i386).
  Tested on RedHat Linux 7.3 (i686) on 16 Sep 2002.  Requires "LANG=C"
  in the environment.

* The gcc (and libstdc++, if needed) package must be installed, along
  with the typical system development packages (glibc-devel, etc.).

* The ncurses-devel package must be installed (for nbinfo).

* The zlib and zlib-devel packages must be installed.  This will be
  fixed in the future to include zlib in libnbcompat.

=====

NETBSD (earlier releases):

* Tested on NetBSD 1.5.2 (machine-independently).

* Should need no special setup.

=====

SOLARIS:

* Tested on Solaris/x86 8 (5.8) with gcc 2.95.2 and Solaris/sparc 8 (5.8)
  with gcc 3.2 (not yet tested with SUNWspro).

* $HOST_CC needs to be set properly (for gcc, it should be set to "gcc",
  otherwise the improper /usr/ucb/cc may be invoked by accident).

* The SUNWzlib package (or a built version of zlib visible to $HOST_CC,
  such as SMCzlib from sunfreeware.com) must be installed.  This will be
  fixed in the future to include zlib in libnbcompat.

* Needs the following paths, in this order, in $PATH:

      /usr/xpg4/bin
      /usr/ccs/bin
      <path to host C and C++ compilers>
      /usr/bin

  /usr/ucb may optionally be placed before /usr/bin, per your preference,
  but /usr/ucb *MUST NOT* be before /usr/ccs/bin or before the path to
  the host C and C++ compilers.