Commit Graph

295 Commits

Author SHA1 Message Date
wiz
4d5864791d Use "nbnroff" instead of "nroff". 2003-06-14 17:57:26 +00:00
wiz
e15134f39c Add nbnroff as host tool. 2003-06-14 17:18:16 +00:00
christos
a3d7c5fa32 No sources == error again. 2003-06-11 13:20:38 +00:00
christos
2a8b4af820 for now, make the fact that no sources were specified a warning. 2003-06-10 21:34:02 +00:00
christos
b09683b289 Do -isystem differently. 2003-06-10 20:40:39 +00:00
christos
1c6e138be1 understand -isystem too if compiler gcc/g++ 2003-06-10 19:51:45 +00:00
christos
33113de8c0 - shift; shift -> shift 2
- understand and do something reasonable with -nostdinc*
2003-06-06 17:33:32 +00:00
christos
09f2dcf67a don't pass CFLAGS and LDFLAGS to configure. mkdep does not give a shit. 2003-06-06 17:30:25 +00:00
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
lukem
fc80f6c55f Add db(1) as a host tool 2003-05-18 08:05:32 +00:00
dbj
41b9cfff20 use reachover relative paths in compat include files instead of
symlinking ufs include files into installboot and makefs tool objdirs
reviewed by lukem and thorpej on tech-toolchain
2003-05-14 00:30:26 +00:00
bjh21
4be7a2dcf3 Add a new feature-test macro, _NETBSD_SOURCE. If this is defined
by the application, all NetBSD interfaces are made visible, even
if some other feature-test macro (like _POSIX_C_SOURCE) is defined.
<sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE,
_POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve
existing behaviour.

This has two major advantages:
+ Programs that require non-POSIX facilities but define _POSIX_C_SOURCE
  can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS.
+ It makes most of the #ifs simpler, in that they're all now ORs of the
  various macros, rather than having checks for (!defined(_ANSI_SOURCE) ||
  !defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place.

I've tried not to change the semantics of the headers in any case where
_NETBSD_SOURCE wasn't defined, but there were some places where the
current semantics were clearly mad, and retaining them was harder than
correcting them.  In particular, I've mostly normalised things so that
_ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE,
_XOPEN_SOURCE and _NETBSD_SOURCE in that order.

Tested by building for vax, encouraged by thorpej, and uncontested in
tech-userlevel for a week.
2003-04-28 23:16:11 +00:00
pooka
8daae68793 build file(1) as a host tool (for compiling magic files) 2003-03-25 23:43:49 +00:00
pooka
cfb2c17888 FreeBSD #defines putc_unlocked in stdio.h, so guard against that also 2003-03-21 14:40:26 +00:00
grant
fc135e74ba if target is not a symlink, silently succeed rather than failing with
EINVAL.

on systems which don't have lch{flags,own,mod}, flags, ownership and
modes of symlinks is meaningless, anyway.

ok'd by christos.
2003-03-19 09:26:38 +00:00
thorpej
d2809fcf8a Put -X into MAKEFLAGS on FreeBSD and Mac OS X; they have a small ARG_MAX. 2003-03-14 05:22:50 +00:00
thorpej
241ed6a4c1 Add a putc_unlocked(). 2003-03-14 03:38:42 +00:00
thorpej
1d994487b3 Fix the socklen_t test; we need to explcitly list the headers we want
included for that test.
2003-03-13 16:27:03 +00:00
thorpej
3550b00b45 Move -no-cpp-precomp logic to defs.mk. 2003-03-13 05:15:49 +00:00
thorpej
8b1707fd43 Disable pre-compiled headers on Darwin. 2003-03-13 05:00:28 +00:00
thorpej
c0d5461540 Pass -no-cpp-precomp to the C preprocessor on Darwin; our use of
libnbcompat is incompatible with pre-compiled headers (which the
compiler correctly detects, but warns about profusely).
2003-03-13 04:43:37 +00:00
thorpej
acd9c2da10 Allow "-no-cpp-precomp", which disables use of pre-compiled headers
on Mac OS X.
2003-03-13 04:40:45 +00:00
thorpej
72ec5d6a9c Check for sys/socket.h and socklen_t. 2003-03-13 04:30:39 +00:00
thorpej
ae754e0c76 Make hexdump a host tool. 2003-03-07 01:14:30 +00:00
mrg
94594f5e48 extract the bintils VERSION.
call the new make targets "native-gcc", etc.
2003-03-05 06:17:17 +00:00
mrg
266fa92cbc mknative:
- get man_MANS and TEXINFO from binutils/doc/Makefile now, not
	binutils/Makefile, as all the binutils docs moved.
both:
	- add new "mknative-gcc", "mknative-binutils", and "mknative-gdb"
	targets / mknative options to allow regeneration of just one part
	of the toolchain.
2003-03-05 05:28:29 +00:00
mrg
5e2559a4cc update for binutils 2.13.2.1, and a few other changes... 2003-03-01 13:09:10 +00:00
mrg
0e5a502526 update for binutils 2.13.2.1, and a few other changes... 2003-03-01 13:09:09 +00:00
lukem
27c21a917d replace DIST with GNUHOSTDIST, and don't unconditionally define it
in Makefile.gnuhost (use ?= instead of =, to allow overriding)
2003-02-07 01:52:51 +00:00
uwe
4eb408dcd9 Avoid cgetcap &co prototypes conflicting with those provided by the host.
With this change we can cross-compile on FreeBSD 4.x.
2003-01-31 20:50:29 +00:00
uwe
2cb7caac8e Build with -DNO_S_COMMAND. We don't need to set the in-core label
when we are a host tool.  This avoids a conflict with inline dkcksum()
in FreeBSD's <sys/disklabel.h>.
2003-01-27 01:25:07 +00:00
uwe
af823cea6c Provide __SCCSID() needed by pwd_mkdb. 2003-01-27 01:17:47 +00:00
lukem
eb77ade624 enable sunlabel... 2002-12-21 12:56:08 +00:00
thorpej
7059a54da4 Include <sys/types.h> before <grp.h>; Mac OS 10.2.2 needs this. 2002-12-16 00:35:00 +00:00
thorpej
bd339b41ac Include <sys/types.h> before including <dirent.h>; Mac OS 10.2.2
needs this.
2002-12-16 00:31:59 +00:00
thorpej
c4a72b6436 Centralize the definition of the tool name prefix (i.e. "nb") into
bsd.own.mk, as the _TOOL_PREFIX variable.
2002-12-08 20:19:56 +00:00
lukem
90af8ac79d Tweak dependencies so that defs.mk depends upon config.cache, and
config.cache depends upon 'include/.stamp configure config.h.in defs.mk.in'
and runs configure.  Forcebly remove config.cache before running configure.

This change means that config.cache is (still) retained between "make clean"
(but not "make cleandir") runs, but is flushed if configure or config.h.in
is changed, as the cache may contain incorrect information in that case.
2002-12-04 23:27:54 +00:00
lukem
c6f399207c add check back for util.h; needed on some foreign systems 2002-11-30 21:43:27 +00:00
lukem
b1e79510cf - Migrate fparseln(3) from libutil to libc, where it should have been in
the first place...
- Bump libutil major (to 7.0) and libc minor (to 12.91).
2002-11-30 03:04:44 +00:00
lukem
336730e201 replace missing strsuftoll(3) 2002-11-29 13:00:22 +00:00
christos
1391513680 PR/18733: Jed Davis: define _PATH_DEFTAPE; pax needs it. 2002-10-20 00:42:20 +00:00
lukem
dba0caccee Implement replacements for lchflags(), lchmod(), and lchown(),
which first lstat(2) the target and return EINVAL if it's a symlink,
and then call ch{flags,mod,own} as appropriate.
Removes the need for hokey code inside the tools themselves...
2002-10-08 00:28:36 +00:00
briggs
4fb03019c2 Just check for poll.h, don't fail if it's not present. 2002-10-07 18:12:36 +00:00
lukem
8b42f7b9d9 Provide strtoll() in libnbcompat.
Should fix relevant build issue on HP-UX and MacOS X hosts.
2002-10-06 12:09:34 +00:00
lukem
c61581112f complete check for lchflags 2002-10-06 01:25:58 +00:00
lukem
cb48eb573f check for lchflags 2002-10-05 04:13:30 +00:00
thorpej
840b4a3a1c Check for <poll.h>. If it is not found, -DUSE_SELECT=1. 2002-10-04 22:21:57 +00:00
thorpej
bcb4b867fe Check for <poll.h> and poll(2). 2002-10-04 22:10:10 +00:00
lukem
b9472f8280 Fix from Giles Lean:
HP-UX has MAP_ANONYMOUS but not MAP_ANON
2002-09-30 00:39:21 +00:00
lukem
6a507832d7 It's "HP-UX" not "HP/UX". (Thanks Giles). 2002-09-29 07:05:28 +00:00