Commit Graph

1431 Commits

Author SHA1 Message Date
jwise 3deae99425 Add proper support for using bsd.hostprog.mk to build c++-based host
programs -- doesn't affect current host tools build (groff is built the
Makefile.gnuhost way).

Provides {.cc,.cpp,.cxx,.C}.lo rule, associated variables, and HOSTPROG_CXX
support (mirroring PROG_CXX in bsd.prog.mk).

Tested with from-scratch `build.sh tools' and full system build.
2005-09-02 03:57:10 +00:00
lukem aca67b86d3 Fix parallel build race in CONFIGSYMLINKS & CONFIGLINKS by
makeing configlinksinstall depend upon configfilesinstall.
2005-08-31 05:08:24 +00:00
skrll 784c9344e8 Initial pass at an in-tree ia64 toolchain. From PR 29141 with some fixes
from me.
2005-08-17 07:13:32 +00:00
he be72885616 Disable the C++ warning -Wold-style-cast for sh3 as well, because
that CPU's headers' va_start() uses a cast.

Discussed with christos.
2005-08-09 22:16:19 +00:00
he 1042d80dad Gcc 2.95.3 doesn't support the -Wabi warning flag, so don't try to use
it there.

The vax port's va_start() macro uses a cast, so for the moment disable
the -Wold-style-cast warning flag for the old GCC as well (as vax is
the only remaining port using this compiler).
2005-08-09 15:24:26 +00:00
christos 4d135558d7 Add CXXFLAGS for WARNS=2 2005-08-09 02:38:06 +00:00
christos d818d83647 Add .m in the list of suffixes, otherwise including bsd.sys.mk in a Makefile
treats the .m.o:  suffix rule as a target. This broke typing 'make' in
${NETBSDSRC}/sys/kern.
2005-07-09 18:45:16 +00:00
peter df0caa2637 Remove (pf)spamd. Its right to exist in NetBSD has been questioned since it
appeared and whether it's really part of pf or not is still unclear. Looking
at the other *BSDs it seems that they have left out spamd when importing pf,
and now we do that too. Also, the name conflicted with another more popular
used tool, after the rename to pfspamd it was left with completely unusable
documentation which apparently no-one wanted to fix.

A port of the latest spamd will be imported into pkgsrc soon.

Suggested by several people, no objections on last proposal on tech-userlevel.
2005-06-27 20:32:39 +00:00
dyoung 960c071724 Add definitions for the new "host tools " disklabel and fdisk.
Define TOOL_DISKLABEL and TOOL_FDISK.  Also introduce HOST_INSTALL_DIR
and HOST_INSTALL_SYMLINK.  These re-usable definitions help me to
install headers for disklabel and fdisk into ${TOOLDIR}/include/nbinclude/.
2005-06-12 19:31:25 +00:00
lukem 87b3e94478 Don't add -Wno-uninitialized to CFLAGS if WARNS > 0 and HAVE_GCC != no,
as gcc3 generates much less false positives for -Wuninitalized and I
have found genuine bugs with this warning enabled.
Tested by building a full release of NetBSD/i386.
2005-06-04 12:17:45 +00:00
christos 3088775912 We need a non-tool version of genassym. 2005-05-31 03:45:42 +00:00
thorpej c4bf9a57c0 Describe TOOL_GENASSYM. 2005-05-31 02:25:36 +00:00
thorpej deae2cc0cf Add TOOL_GENASSYM. Part of PR toolchain/30350 2005-05-30 15:52:16 +00:00
riz fbc99af11a Provide a default definition of OBJDUMP - bsd.kmod.mk expects it.
Approved by heas.
2005-05-23 21:58:21 +00:00
lukem 156714223a Also use relative symlinks for the /usr/lib/lib${LIB}.so.${SHLIB_FULLVERSION}
symlink to ../../lib/... because runtime lookups on the former aren't
speed critical either.
2005-05-10 14:54:02 +00:00
lukem b2536b11a5 Restore rev 1.247:
Use relative symlinks for /usr/lib/libfoo.so -> /lib/libfoo.so.M.N
This should work now that "install -l r -d destdir" works if destdir
contains a symlink.
2005-05-10 02:01:06 +00:00
tron fce29e26d8 Honor contents of "CLEANFILES" in "cleandir" target. 2005-04-19 08:41:37 +00:00
lukem aff82fa50e document MKINET6 and USE_INET6 2005-04-15 03:04:53 +00:00
dsl b90eeeef12 Report when we link a program into xxx.ro (before being crunched) 2005-04-09 13:00:53 +00:00
martin 8a51929fe1 Add -fno-merge-constants (as the xsrc build does too) to make the module
loader work with the gcc versions we use now. No idea why i386 apparently
was not affected by this.
2005-04-06 08:32:11 +00:00
tron 1f47028b14 Don't use "-std=c99" for NetBSD-vax because gcc 2.95.3 doesn't support it. 2005-04-05 11:56:09 +00:00
martin 60ac75c119 sparc64 needs LOADABLE flags too 2005-03-26 10:31:51 +00:00
rtr 6fa7827891 + document SCRIPTSDIR and SCRIPTSDIR_<script> 2005-03-22 21:12:32 +00:00
tron 63b4b6820f Compile "src/x11" with "-fno-strict-aliasing" because that's what the
native build does.
2005-03-21 14:10:29 +00:00
hira c5ebd445ba Update __vendorversion__ to 4.5.0. 2005-03-19 17:27:46 +00:00
lukem 337f8776b0 Also set SHLIBDIR to /lib if ${USE_SHLIBDIR} != "no".
This allows <bsd.lib.mk> to correctly set the RPATH of libraries that
use USE_SHLIBDIR=yes to /lib, so that dependent libraries can be found
from /lib when /usr/lib isn't mounted yet.
This was the intention of the _LIBLDOPTS support in <bsd.lib.mk>.

Fixes problem reported by Dan Carosone with when /sbin/cgdconfig is
dynamically linked against libcrypto.so but not libcrypt.so (it was
relying upon libcrypto.so to pull in libcrypt.so).
2005-03-12 13:21:12 +00:00
he 8e8728c45c Introduce PAM_STATIC_LDADD and PAM_STATIC_DPADD. When compiling
with MKPIC=no, possibly because the target does not support shared
libraries, these include libraries required to resolve all symbols
which end up referenced from PAM-using applications.  The libraries
presently required are -lcrypt, -lrpcsvc and -lutil.

Add use of these variables which are currently set up to use PAM,
so that they compile when MKPIC=no.

Also, in the telnetd case, reorder the order of the libraries, so
that libtelnet.a comes before -ltermcap and -lutil, again to fix
link error when MKPIC=no.

Discussed with thorpej and christos.
2005-03-04 20:41:08 +00:00
christos 4c1f8229f5 Turn on PAM by default. Approved by core. 2005-02-28 02:28:09 +00:00
christos 1d6a9d3f17 Don't disable PAM when MKPIC=no. PAM should work with static libraries, and
this breaks PAM on programs that decide not to use PIC libraries, such as
the X server.
2005-02-24 14:56:55 +00:00
peter 1c9b56c830 Add MKIPFILTER; if set to no, don't build and install the ipf(4) programs,
headers and LKM.

Add MKPF; if set to no, don't build and install the pf(4) programs,
headers, LKM and spamd.

Both options default to yes, so nothing changed in the default build.

Reviewed by lukem.
2005-02-22 14:39:58 +00:00
matt 6dc6ca22f8 Add support for WARNS=4 (-std=c99) 2005-02-20 01:31:44 +00:00
christos 907dfbe7a9 Add libradius 2005-02-20 00:35:02 +00:00
wiz ae20c95c70 MKHTML defaults to no; fix documentation (which claimed it defaults to yes). 2005-02-07 01:38:44 +00:00
rtr 8c050b7c06 + cleanup removal of -DUSE_NBSD_THREADLIB usage 2005-01-21 05:15:36 +00:00
thorpej ed6d501758 Back out previous. The intent is for MKPAM to be "yes" and USE_PAM to
be "no".  The su(1) Makefile has been fixed to test the correct variable.
2005-01-13 00:15:21 +00:00
manu b77a9f1e15 Put back PAM to disabled by default and add a notice explaining why it
is disabled and why it should not be re-enabled until it gets stable.
2005-01-13 00:03:56 +00:00
lukem 6ea8d362d6 Rework PAM defaults:
MKPAM=yes	# provide infrastructure by default (unless MKPIC=no)
	USE_PAM=no	# don't compile PAM support in by default
2005-01-12 00:39:48 +00:00
lukem aa8cb2a456 If RESCUEDIR is defined, automatically add that to CPPFLAGS 2005-01-12 00:32:59 +00:00
he ccb78245cb Add a default setting of MKPAM to "yes". 2005-01-11 16:20:49 +00:00
tron 1f93f9857c Don't define "USE_NBSD_THREADLIB" because "threadlib.h" was removed. 2005-01-11 10:39:47 +00:00
manu f98741225d Disable PAM by default until it gets properly integrated.
Now have MKPAM=yes in /etc/mk.conf if you want to experiment with PAM.
2005-01-10 21:06:39 +00:00
lukem 7157011597 Only compile in IPv6 support if ${USE_INET6} != "no"
MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
2005-01-10 02:58:58 +00:00
lukem 1227550528 Revert previous (1.258): we don't want to link .so libraries against
(non-PIC) .a libraries, and the problem which triggered the addition
of the previous has been fixed by providing librpcsvc as a .so.
2005-01-10 02:42:34 +00:00
he 67d66c86bb Don't build libpam and associated bits if the target platform doesn't
support shared libraries (sun2 and evbsh5 at it would seem), or if the
user has specified MKPIC=no.  Also introduce a new tag to the set lists
("pam"), so that the non-shlib ports can once again complete a release
build.

Discussed with christos and lukem.
2005-01-10 00:20:21 +00:00
lukem 7af4913b70 Implement <bsd.prog.mk> vars:
LIBASN1 LIBBSDMALLOC LIBG2C LIBPAM LIBSSH
2005-01-08 09:53:38 +00:00
tron 71d6312747 EOL of XFree86 3.3.6, approved by core@NetBSD.org 2005-01-07 18:56:40 +00:00
lukem a207248574 Provide MKPAM and USE_PAM 2005-01-06 00:42:58 +00:00
lukem 72352e0662 document LIBDPLIBS 2004-12-29 14:46:24 +00:00
lukem e0f9049e4d When setting DPADD based on LIBDPLIBS, only add the .so if it exists
and fallback to the .a instead.  This allows the use of libraries
which are .so only, have both .so & .a, and are .a only.
2004-12-29 14:41:05 +00:00
fredb 45a5ad686f Mirror Rev 1.6 in Imake.rules, addressing PR misc/28444. This implements
Thomas Dickey's idea to work around a standards mandated change to the
C pre-processor to avoid having to change dozens of ancient X man pages,
appending a space to any line in a man page that ends in backslash "\".
2004-12-02 16:33:47 +00:00