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
lukem
ab956106b3
preliminary HP/UX notes from Giles; it needs zlib.
...
(as Solaris, Linux and HP/UX all mention they need zlib and it should
be part of libnbcompat, maybe this is a hint for us to get a move on
and do that :)
2002-09-22 01:26:39 +00:00
thorpej
771b8c8404
Change the TOOLCHAIN_MISSING from == "no" to != "yes", to be consistent
...
with the other tests of this variable.
2002-09-19 17:13:01 +00:00
matt
5e29f1c268
Since TOOLCHAIN_MISSING is defined in bsd.own.mk, it can never be undefined.
...
Instead, make sure the value of it is "no"
2002-09-19 01:23:24 +00:00
thorpej
3b08abd277
* Eliminate the USE_NEW_TOOLCHAIN variable. Instead, split it into
...
two variables:
TOOLCHAIN_MISSING -- set to "yes" on platforms for which there is
no working in-tree toolchain (hppa, ns32k, sh5, x86_64).
EXTERNAL_TOOLCHAIN -- if defined by the user, points to the root of
an external toolchain (e.g. /usr/local/gnu). This enables the cross-build
framework even for TOOLCHAIN_MISSING platforms.
If TOOLCHAIN_MISSING is set to "yes", MKGDB, MKBFD, and MKGCC are all
unconditionally set to "no", since the bits are not there to build.
If EXTERNAL_TOOLCHAIN is set, MKGCC is unconditionally set to "no",
since the external toolchain's compiler is not in-sync with the
in-tree compiler support components (e.g. libgcc).
* Set MACHINE_CPU much earlier in bsd.own.mk, so that more tests in
that file can use it.
2002-09-17 23:18:25 +00:00
briggs
482480a39e
Note that RedHat 7.3 hosts successfully as of today with the caveat that
...
LANG=C must be in the environment.
2002-09-16 18:13:04 +00:00
briggs
a94d82e6f9
Always use NetBSD's fts(3) in compat builds. Some systems (notably
...
Red Hat 7.3, at least) do not have fts(3) implementations that work
correctly with -D_FILE_OFFSET_BITS=64.
2002-09-16 04:10:36 +00:00
thorpej
a25cf0dfe0
Patch host-mkdep with the working host shell.
2002-09-15 17:23:01 +00:00
thorpej
54a74239f1
Patch lorder with the host's working shell. Idea from Chris Demetriou.
2002-09-15 17:05:26 +00:00
thorpej
6d82557c32
Add a HOST_BSHELL make var which contains the path to the working
...
shell.
2002-09-15 16:46:23 +00:00
chris
41f1477926
We need binstall to be installed, before attempting to use it to install mktemp.
2002-09-14 23:34:16 +00:00
thorpej
dc71a69c6a
Descend into mktemp.
2002-09-14 18:00:22 +00:00
thorpej
d92d489497
* Check for mkstemp() and mkdtemp(), and build them into libnbcompat
...
if necessary.
* mktemp is now a host-tool, so nuke the lame script (which isn't even
properly installed during the tools bootstrap).
2002-09-14 04:30:27 +00:00
thorpej
076280c9ac
Re-add mktemp as a host tool; it is used in more places than Ben
...
thought.
2002-09-14 04:26:03 +00:00
bjh21
82a564def5
Add __restrict to the set of tokens we #define away: our glob.h uses it.
2002-09-13 23:35:34 +00:00
thorpej
44390285d1
Update Solaris section (again).
2002-09-13 23:35:32 +00:00
thorpej
0cbefac8eb
Be more conservative with quoting, to play nice with /bin/sh on Solaris 8.
2002-09-13 19:55:52 +00:00
thorpej
f54ca60093
* Always include the NetBSD glob(3) in libnbcompat, as the host
...
tools use some features of glob(3) that are not available on
all systems.
* Always include the NetBSD vis(3) in libnbcompat, since vis(3)
is not really standardized, and the vis(3) present on some systems
is different from ours.
* Always include the NetBSD MD2, MD4, MD5, RMD160, and SHA1 implementations
in libnbcompat. The host tools use features of the NetBSD versions
which aren't present on all systems that include those functions.
* Add a check for random(3) -- the Heimdal host tools want it.
* Add a check for termios.h -- the Heimdal host tools want it.
* Update the README to indicate the current state of building the
host tools on Solaris 8 (for SPARC).
2002-09-13 19:07:01 +00:00
thorpej
5aa3fde6fa
Delete a few things that appear in gcc 3.x's CPP output.
2002-09-13 03:41:54 +00:00
pooka
c695034447
work around FreeBSD defining user_from_uid() in stdlib.h
2002-07-03 17:17:04 +00:00
pooka
d8c01a3d2a
Fine-grain checking somewhat:
...
* check for user_from_uid() in addition to pwcache_userdb()
* check for svis() in addition to vis()
2002-07-03 17:16:26 +00:00
veego
bd46e08c93
The last commit wasn't tested. Add a missing \
2002-06-12 19:59:55 +00:00
thorpej
fe57329435
Don't build toolchain bits for hppa, for now.
2002-06-12 19:09:37 +00:00
mason
7e7e806c7e
Add cat(1) as a host tool.
2002-06-10 18:32:28 +00:00
mason
f8af64685c
fix minor typo -> s/lokcing/locking/
2002-06-07 21:13:55 +00:00
thorpej
1f5f295af6
Don't try to build toolchain bits for ns32k.
2002-06-05 02:21:49 +00:00
matt
9a6861e363
Make Solaris 8 happy: use ln -f -s instead of ln -fs
2002-05-31 05:50:03 +00:00
bjh21
bf9ec67e38
Add fgen as a host tool, used for sys/arch/sparc/bootblk.
2002-05-28 21:56:05 +00:00
thorpej
e1b93f4526
Don't try to extract gdbserver configury; we don't yet support gdbserver.
2002-05-20 15:19:09 +00:00
lukem
3e591f18cf
gratuitious comment addition
2002-05-18 05:59:23 +00:00
bjh21
4eb51f77ed
Use the target disklabel_mbr.h, since it just describes data structures for
...
use on the target. This gets prep-mkbootimage to compile under Linux.
2002-05-12 12:30:10 +00:00
lukem
2bd907065c
remove now-unnecessary sparc-installboot
2002-05-07 12:12:53 +00:00
kleink
c30b41cae0
On prep, descend into prep-mkbootimage.
2002-05-03 20:35:46 +00:00
kleink
2a3e2f7c04
Build prep's mkbootimage as a host tool, called nbprep-mkbootimage.
2002-05-03 20:33:53 +00:00
bjh21
2b918abe52
I believe I've fixed nbmake's dependency on /bin/sh.
2002-04-28 22:28:38 +00:00
bjh21
0080fde9da
Define _PATH_BSHELL to the first "sh" on the PATH when bootstrapping
...
nbmake. This should remove our dependency on a nobbled /bin/sh on
Solaris.
2002-04-27 16:36:30 +00:00
lukem
8c8b91af6a
todd forgot to remove this one in his HAVE_CONFIG_H rototill...
2002-04-25 22:46:35 +00:00
tv
4887cf3412
HAVE_CONFIG_Hize. Also get *_boot.h from "../../sys/" when HAVE_CONFIG_H,
...
rather than creating more stubs.
2002-04-25 18:11:53 +00:00
bjh21
d68e9d36ad
Check for the location of sh on the path, and use that to construct the
...
value for _PATH_DEFSHELLDIR. In theory, _PATH_DEFSHELLDIR will also be
used to find csh, but ".SHELL csh" shouldn't be used anywhere in our source
tree, and this make shouldn't be used for other things.
This should cause nbmake to use the right shell for most purposes when
cross-compiling from Solaris.
2002-04-24 21:20:08 +00:00
bjh21
a29c20f490
Remove an "eval" from docmd, in order to stop it over-evaluating things
...
(and losing quotes from DEFS).
2002-04-24 21:17:24 +00:00
bjh21
a3112ce1b9
Rather than hardcoding two possible locations of the POSIX shell (for
...
Solaris and everything else), set _PATH_BSHELL to the first occurrence of
"sh" on the path. This should be rather more portable.
2002-04-24 19:41:58 +00:00
bjh21
6d3e84cc85
src/tools/dbsym has been buildable on non-NetBSD systems for some time.
2002-04-24 16:28:55 +00:00
lukem
4ca5cf63d9
Add shim dev/sun/sun_boot.h (#includes "../../sys/dev/sun/sun_boot.h")
...
so that we don't rely upon host's <dev/sun/sun_boot.h>
2002-04-24 01:40:14 +00:00
bjh21
a64574e0e7
Add test for alloca() and <alloca.h>, since Sun Workshop C 5.0 needs this.
2002-04-23 00:13:50 +00:00
bjh21
bfebd5429d
<stdint.h> belongs before <sys/endian.h>.
2002-04-22 23:40:10 +00:00
bjh21
35d3ac9968
Define __CONCAT if the host doesn't.
2002-04-22 23:39:38 +00:00
bjh21
c5b9549c5f
Create sys/endian.h if it doesn't exist, since rmd160.c includes it directly.
2002-04-22 19:23:33 +00:00
lukem
2e4e525416
add -I. to HOST_CPPFLAGS
2002-04-22 15:18:57 +00:00
lukem
7de4309228
add UINT32_MAX if it's not defined
2002-04-22 15:09:19 +00:00
tv
bcde44453d
Emit an empty <stdint.h> if the host doesn't have one. Should fix PR 16416.
2002-04-19 22:47:11 +00:00
lukem
9ed0aaa314
borrow trick from ../makefs/Makefile to make this more portable for <ufs/...
2002-04-19 07:19:09 +00:00
tv
42f04dab1c
Actually put the include directory timestamp under the "include" directory,
...
such that nuking the dir by hand also nukes the timestamp.
2002-04-18 21:15:08 +00:00
tv
25252c9a84
Re-add test for <sys/endian.h>; it disappeared somewhere along the way.
2002-04-18 21:05:22 +00:00
bjh21
6619533896
Add a stub issetugid() for platforms that don't have it. For now, we assume
...
that no host program will be installed set-id, so the stub function always
returns 0.
2002-04-18 15:31:51 +00:00
bjh21
bcb3d0b705
vax-installboot has been deleted, so don't recurse into it.
2002-04-06 13:33:46 +00:00
bjh21
833d114dfc
Add HAVE_SYS_ENDIAN_H.
2002-04-04 17:52:04 +00:00
bjh21
55b93a6461
Add htobe16() and friends, #ifndef HAVE_SYS_ENDIAN_H.
2002-04-04 17:49:20 +00:00
bjh21
79cd9fb3ab
Replace a spurious hard space (\xa0) with a normal one.
2002-04-04 17:28:33 +00:00
lukem
87f91a310f
Add -I../mips-elf2ecoff to take advantage of the host friendly sys/exec_elf.h
...
that's in that directory. Fixes compile issue on (older source ?) arm
systems noted by Richard Earnshaw.
XXX: arguably a better version of sys/exec_elf.h (and others) should
be in ../compat instead, but that's a problem for another day.
2002-04-04 13:27:33 +00:00
lukem
28376496ff
Add shim dev/dec/dec_boot.h (#includes "../../sys/dev/dec/dec_boot.h")
...
so that we don't rely upon host's <dev/dec/dec_boot.h>
2002-04-04 00:24:18 +00:00
tv
d9d0bc0241
Don't need "if" here to look for TOOLDIR/bin; "mkdir -p" won't fail if
...
it already exists.
2002-04-03 15:56:32 +00:00
christos
00f77e5d9a
fix my own pr since todd is unwilling to use grep.
2002-04-03 15:41:19 +00:00
lukem
96bc0c5a0c
not needed now MI ${INSTALLBOOT} appears to work for vax
2002-04-03 06:09:00 +00:00
lukem
138523b976
enable installboot
2002-04-03 06:03:35 +00:00
lukem
0f02c34165
add nbinstallboot
2002-04-03 06:02:03 +00:00
thorpej
2ae4cde5ea
Nuke NO_DBSYM; dbsym now uses BFD for everything.
2002-04-01 22:03:46 +00:00
bjh21
c9e4965681
Revert addition of mkdtemp() to libnbcompat. I don't think we need mktemp(1)
...
after all.
2002-04-01 13:59:34 +00:00
bjh21
c18f2e8b59
On second thoughts, don't make mktemp a host tool. It's only used once, for
...
creating a temporary directory for maketars, and mkdir can do that safely
enough.
2002-04-01 13:54:00 +00:00
bjh21
fb69871067
Add mktemp as a host tool.
2002-03-31 18:11:50 +00:00
bjh21
58017a564d
Add mkdtemp to libnbcompat, since glibc doesn't have it an mktemp(1) will
...
need it.
2002-03-31 18:04:11 +00:00
bjh21
2e32db0aee
Add cksum as a host tool.
2002-03-31 14:33:54 +00:00