Commit Graph

139 Commits

Author SHA1 Message Date
tls
02aa4d6c73 Sigh. Fix dependency problem for libcrypto as well; not sure why the
previous build didn't turn this up.
2007-11-05 18:43:42 +00:00
tls
6c2ee7b76e Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile.  Fixed build lossage
pointed out by smb.
2007-11-05 04:58:52 +00:00
tls
b21c402a7b Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared.  Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.
2007-11-04 23:28:16 +00:00
tls
4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
christos
27ee4934f6 restore changes from v1.5:
- disable sigwait in the non-threaded case since it does not work.
- enable inline
2007-05-09 17:50:11 +00:00
martin
7b277a1e3c Make named use threads on sparc and sparc64 again 2007-05-08 06:23:44 +00:00
scw
5764a76889 Remove support for NetBSD/{,evb}sh5. 2007-04-08 09:35:21 +00:00
christos
a8accd0f06 mips1 does not have the right assembly instructions. 2007-01-30 00:49:15 +00:00
christos
db3454e373 powerpc assembly does not work. 2007-01-30 00:48:27 +00:00
christos
f8ee9d613d deal with x86_64 build failure. 2007-01-29 17:33:30 +00:00
christos
16317a9d71 Changes for bind-9.4.0-rc2 2007-01-27 21:36:13 +00:00
he
2c2b5873de If we're not using pthreads, claim also that we don't have sigwait.
This works around the problems observed on sparc and sparc64 (where
we've disabled use of pthreads) where the BIND applications end up
being killed with SIGTERM instead of exiting gracefully.
2006-10-22 20:53:51 +00:00
peter
e263dfd62f WFORMAT is no more... 2006-10-08 17:52:28 +00:00
jdc
80ab849735 Disable threaded support for sparc and sparc64.
OK martin@.
2006-08-28 15:37:05 +00:00
mrg
5609a371c9 make MKCRYPTO=no work again. 2006-06-25 03:02:19 +00:00
mrg
aadd7d4847 sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4. 2006-05-11 23:16:28 +00:00
christos
449dbee9f0 Compile with OPENSSL. 2006-05-06 17:51:46 +00:00
christos
ed53f670c4 remove programs that have been deprecated. 2005-12-22 00:27:23 +00:00
christos
bd58506612 Resolve conflicts 2005-12-22 00:19:00 +00:00
christos
97babf6224 add the dnssec and namedb check tools 2005-11-19 02:09:27 +00:00
rpaulo
79cf1201a9 Install HTML BIND 9 Documentation 2005-10-10 13:21:43 +00:00
tron
7663ad07fa Remove outdated BIND 8 version of named.conf(5). The build now picks up
the correct version from "src/dist/bind/bin/named".
2005-07-01 12:10:43 +00:00
lukem
b3ead83e1c Only #define WANT_IPV6 if ${USE_INET6} != "no". 2005-01-10 03:01:18 +00:00
he
ab248774f6 For the sh5 target, reduce optimization level for two files so that
BIND compiles on that platform.
2004-11-11 00:34:05 +00:00
christos
4614af85f7 We control threaded or not from the Makefile 2004-11-07 02:54:55 +00:00
christos
1a8b79bc27 Add netbsd id 2004-11-07 01:13:32 +00:00
christos
b1454ec955 - add netbsd id
- define that we have threads
2004-11-07 01:13:18 +00:00
christos
74786d7691 - add netbsd id
- use endian.h to determine endianness
2004-11-07 01:12:56 +00:00
christos
008f1a9208 includes for bind-9-3-0 2004-11-07 01:07:26 +00:00
heas
4e29cf9d07 Reference rndc(8) instead of bind8's ndc(8).
ISC-Bugs #11509
2004-06-03 15:05:45 +00:00
lukem
a7bdccd7ef Improve how the various helper libraries are added to LDADD/DPADD, including
supporting caching the OBJDIRS (via .MAKEOVERRIDES) to speed up subdir makes.
(Based on similar work in gnu/usr.sbin/postfix)
2004-05-23 03:16:40 +00:00
lukem
deb5b059d1 use MKPRIVATELIB=yes (instead of setting various other stuff to no) 2004-05-23 02:49:26 +00:00
wiz
c50b05e3d3 Some more or less mechanic updates for bind8 -> bind9.
Also, refer only to latest DNSSEC RFC. Bump date.
2004-05-21 23:34:31 +00:00
christos
14b88f7570 The Makefile.inc determines if we have threads or not, so don't hard-code this. 2004-05-21 16:05:51 +00:00
wiz
552e912079 Use Sq, Dq; sort sections; new sentence, new line;
refer to DNSSec RFCs in SEE ALSO (since they are mentioned in the text;
XXX: text should be updated to refer to latest one only);
XXX: refers to BIND 8.
2004-05-20 01:01:33 +00:00
wiz
fcff0031f7 New sentence, new line; use more macros; sort sections;
sort SEE ALSO; replace > with \*[Gt].
2004-05-20 00:37:51 +00:00
wiz
810322e03d Drop trailing whitespace. 2004-05-20 00:26:19 +00:00
itojun
d405fc4436 build and install rndc-confgen (needed to create rndc.key) 2004-05-19 10:29:21 +00:00
christos
b1fa643acc remove old makefiles 2004-05-18 00:13:44 +00:00
christos
d981be40cf remove garbage file 2004-05-18 00:11:33 +00:00
christos
5862d9d92c Resolve conflicts 2004-05-18 00:10:39 +00:00
christos
9c2ff49b1e Import bind9 build framework 2004-05-18 00:06:57 +00:00
lukem
922c63e0b6 use != "no" 2004-01-03 13:46:30 +00:00
scw
801bdc886f Gcc3 for sh5 gets an ICE compiling ns_main.c at -O2.
Drop to -O1 for now when building for sh5.
2003-12-07 19:57:39 +00:00
itojun
29d9058dc7 remove BIND crypto portion, as the license doesn't fit our policy and we do not
import those sources.
2003-10-22 05:56:36 +00:00
lukem
130ab7336b Rework how MAKEVERBOSE operates:
*	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00
lukem
8233be784c support MAKEVERBOSE 2003-10-19 06:12:07 +00:00
martin
0af2c4286d Remove sparc64 special case handling - no longer needed. 2003-09-19 16:39:52 +00:00
agc
326b2259b7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-08-07 11:25:11 +00:00
lukem
a93ea220fc Rework how dependency generation is performed:
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
  This is a change of behaviour.  If a Makefile wants the clean semantics
  it must specifically append to CLEANFILES.
  Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
  that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d  depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
2003-08-01 17:03:41 +00:00