Commit Graph

365 Commits

Author SHA1 Message Date
christos a043955316 Patch the build script and toolchain to allow passing through
HOST_CPPFLAGS, HOST_CXXFLAGS, but not LIBRARY_PATH because it breaks
the build. These variables are necessary to support building NetBSD
from a GNU Guix or NixOS host, where /usr/include, /lib, and all
but /bin/sh do not exist.  In many cases, support for HOST_CPPFLAGS
was incomplete. From Ryan Sundberg
2021-09-18 01:47:07 +00:00
cjep ce74361f40 Final note on OpenBSD cross-buildling. Remaining issues were due to
default limits on the build host.
2021-07-11 06:15:42 +00:00
cjep 0534019bd5 LLVM RT library will actually cross-build from OpenBSD provided sufficient
limits are in place for the build user.
2021-07-04 12:57:48 +00:00
cjep 47c30ebc16 Note OpenBSD cross-build progress 2021-06-29 10:02:34 +00:00
cjep c1a451e849 avoid triggering conflict indicator warnings 2021-06-28 07:18:01 +00:00
cjep a09ab67fff note on Darwin/Mac 2021-06-28 07:16:46 +00:00
cjep 63399de5f3 PR port-amiga/56188
Include a prototype for __nbcompat_heapsort. The tools for amiga now
build on Darwin where one Amiga specific tool uses heapsort.

Despite being a one-liner, ./build.sh -m amiga tools was tested on
NetBSD, Darwin, FreeBSD & Linux with the change.

Discussed various options with jdc & thorpej. Perhaps in the future
we could look at using qsort instead of heapsort as qsort is
standardised and more likely to be available. We could then remove
heapsort from the compatibility library.
2021-05-30 10:39:41 +00:00
uwe fbfae67d9f Fix typo in pathname in a comment. 2021-05-24 23:07:40 +00:00
cjep ac6ba04d2d Add macOS High Sierra to the list of verified build platforms 2021-05-12 06:39:28 +00:00
cjep 72496168ad More test notes from using build.sh against non NetBSD platforms. 2021-05-07 14:52:59 +00:00
cjep b84b6c59df Update with information from recent testing of different Linux variants
on AWS. Also FreeBSD 13.
2021-05-06 07:32:15 +00:00
christos 142620627d Add reallocarray; this is used by the new regex code and we don't want to
convert it to reallocarr so the code is kept similar with the original from
FreeBSD.
2021-02-25 13:41:58 +00:00
rin 1fb63bb836 Fix copy-paste error for heapsort(3), so that it is declared appropriately. 2021-02-23 16:03:00 +00:00
uwe 3ed307aae1 Regen: Add AC_MSG_RESULT yes/no to the uio checks. 2020-06-24 14:44:44 +00:00
uwe 6072166471 Add AC_MSG_RESULT yes/no to the uio checks. 2020-06-24 14:39:01 +00:00
lukem 49c251eb17 tools: configure --silent if MAKEVERBOSE == 0 2020-06-13 10:49:17 +00:00
hannken 8d122c4997 Bring back two lines deleted by accident. From Kamil Rytarowski. 2019-06-22 14:40:33 +00:00
hannken aa8b5122a1 Update tools/compat/configure for new path of "rpc/types.h".
Remove intermediate patch from rpcgen/Makefile.

Patch from Nick Hudson, errors from me.
2019-06-22 13:42:53 +00:00
kamil 80b70339c3 regen tools/compat 2019-06-19 23:35:55 +00:00
kamil 08fadea744 Add more SunOS types to tools/compat
Add fallback defintions of: uchar_t, ushort_t, uint_t, ulong_t.

Needed by the libctf code on Ubuntu 16.x.
2019-06-19 23:33:07 +00:00
kamil 1c06c1fef3 Add sys/uio.h & enum uio_seg, enum uio_rw to tools/compat
This is needed for bootstrapping the tools on Ubuntu 16.x.
2019-06-19 03:40:15 +00:00
thorpej 8319f966d5 Fix building libprop as a host tool library on platforms that don't have
the Matt Thomas rbtree:

- Include rb.c in libnbcompat, and provide a nbcompat sys/rbtree.h
  header.
- Make sure libprop's source file include prop_object_impl.h before
  anything else, and pull in nbtool_config.h from there.

Tested by simulating such a host system by renaming the host's
<sys/rbtree.h> out of the way (which reproduced the build failure)
and verifying that the host-tool installboot contained the rb_*
functions in its own .text segment.
2019-05-08 02:25:50 +00:00
dholland 4c5da2b349 Restore comment accidentally lost in merge. 2019-01-27 05:15:32 +00:00
pgoyette d91f98a871 Merge the [pgoyette-compat] branch 2019-01-27 02:08:33 +00:00
palle 1e0d01e5bc Add instructions for building NetBSD on modern Solaris 11 hosts 2018-09-09 19:17:21 +00:00
christos 14cc014e8a deal with getsubopt and strncasecmp (needed by mdocml) 2018-08-30 12:05:34 +00:00
christos b9f6c86d43 add strncasecmp 2018-08-16 12:03:36 +00:00
christos 0ffb3ff427 Add strcasecmp 2018-08-11 16:24:59 +00:00
maya c44313b349 Revert my previous config test inclusion for u_longlong_t.
Fixing this differently by avoiding the need for the definition.
It also caused a problem in OS X, as I neglected to include a correct header
2018-06-13 04:17:43 +00:00
christos 4fabbeb31b Move the typedefs before the header inclusions (except <features.h>) and
explain why.
2018-06-12 23:52:56 +00:00
maya a3ebee93c8 Add configure check and fallback definition for u_longlong_t
Should help linux tools compilation of dtrace tools, and not
affect NetBSD.

From Chuck Zmudzinski in current-users, with light modification
by myself.
2018-06-11 18:48:24 +00:00
christos bf7113376a Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host
2018-05-01 19:59:42 +00:00
christos b2a8932dbe PR/53238: Robert Elz: Disable MKREPRO in tools; the host compiler might
not support the necessary options. This is done thusly:

1. Set MKREPRO=no in Makefile.host. This handles all the Makefiles that
   use it and don't include bsd.own.mk.
2. Create Makefile.inc and set MKREPRO=no in it. Change the Makefiles that
   include bsd.own.mk, to include bsd.init.mk which includes Makefile.inc
   first. This will also allow us to control other tools options from a
   single location if we need to.

XXX: pullup-8
2018-05-01 00:04:34 +00:00
christos e9e7b01807 undo previous; breaks the build. handle inside flex. 2018-03-11 18:32:43 +00:00
hans ccac921152 Fix build of tools/lex on platforms lacking sys/cdefs.h by including
nbtool_config.h in tools/compat/regex.h. Tested on illumos.
2018-03-11 10:14:04 +00:00
sevan d866c85be9 regen 2017-12-09 04:23:22 +00:00
sevan bf692293ff Add asnprintf() to the AC_CHECK_DECLS list.
Resolves conflict when cross compiling on Cygwin the provided implementation
does not get picked up.

Closes PR toolchain/52797
2017-12-09 04:22:53 +00:00
joerg bf5991674e Be consistent with our header. 2017-10-03 10:28:30 +00:00
christos 2dfeb58bd4 fix fpurge declaration 2017-10-03 01:43:03 +00:00
christos cd84452b4c regen 2017-10-02 22:21:31 +00:00
christos 692f2d0a6f handle __fpurge being declared in <stdio_ext.h> 2017-10-02 22:19:45 +00:00
christos b8eef4082a regen 2017-01-07 21:31:07 +00:00
christos 4c2e361d5c strmode on MacOS/X is in string.h 2017-01-07 21:30:42 +00:00
christos 6b3772867a adjust for SSP (MacOS/X) 2017-01-07 21:29:30 +00:00
christos cf6cbc80c5 need ctype.h 2017-01-07 02:55:19 +00:00
christos 621e8732cd Check for declarations, not the existance of functions since some are
visible only when _NETBSD_SOURCE is defined. This avoids || defined(__NetBSD__)
hacks.
2017-01-07 02:52:04 +00:00
christos 0a3c283ede regen 2016-10-19 21:55:26 +00:00
christos 883488e64e try to fix missing decls 2016-10-19 21:54:20 +00:00
aymeric a3838ae30d add our libc's regex implementation to libnbcompat.
This way, nbsed picks it up and it unbreaks the build of xf86-video-intel-old's
man page under Linux and probably other future changes which rightfully expect
the (net)bsd behaviour.

Full release tested on ArchLinux and NetBSD 7.0_STABLE
2016-03-06 10:19:01 +00:00
martin 7493d9dc28 Remove regexp.h here temporarily 2016-03-01 10:11:07 +00:00