Bryan Drewery
5608fd23c2
Revert r267233 for now. PIE support needs to be reworked.
...
1. 50+% of NO_PIE use is fixed by adding -fPIC to INTERNALLIB and other
build-only utility libraries.
2. Another 40% is fixed by generating _pic.a variants of various libraries.
3. Some of the NO_PIE use is a bit absurd as it is disabling PIE (and ASLR)
where it never would work anyhow, such as csu or loader. This suggests
there may be better ways of adding support to the tree. Many of these
cases can be fixed such that -fPIE will work but there is really no
reason to have it in those cases.
4. Some of the uses are working around hacks done to some Makefiles that are
really building libraries but have been using bsd.prog.mk because the code
is cleaner. Had they been using bsd.lib.mk then NO_PIE would not have
been needed.
We likely do want to enable PIE by default (opt-out) for non-tree consumers
(such as ports). For in-tree though we probably want to only enable PIE
(opt-in) for common attack targets such as remote service daemons and setuid
utilities. This is also a great performance compromise since ASLR is expected
to reduce performance. As such it does not make sense to enable it in all
utilities such as ls(1) that have little benefit to having it enabled.
Reported by: kib
2014-08-19 15:04:32 +00:00
Bryan Drewery
864c53ead8
In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE.
...
This is currently an opt-in build flag. Once ASLR support is ready and stable
it should changed to opt-out and be enabled by default along with ASLR.
Each application Makefile uses opt-out to ensure that ASLR will be enabled by
default in new directories when the system is compiled with PIE/ASLR. [2]
Mark known build failures as NO_PIE for now.
The only known runtime failure was rtld.
[1] http://www.bsdcan.org/2014/schedule/events/452.en.html
Submitted by: Shawn Webb <lattera@gmail.com>
Discussed between: des@ and Shawn Webb [2]
2014-06-08 17:29:31 +00:00
Warner Losh
c6063d0da8
Use src.opts.mk in preference to bsd.own.mk except where we need stuff
...
from the latter.
2014-05-06 04:22:01 +00:00
Dag-Erling Smørgrav
696bc4a741
Remove the names of the build host and user and the build date. This
...
still leaves the host OS and version, but these are harder to remove.
MFC after: 3 weeks
2014-04-12 18:01:25 +00:00
Dimitry Andric
5e0a19bdee
Consistently set RPCGEN_CPP when running rpcgen, so the C preprocessor
...
set via ${CPP} is used, instead of always using hardcoded /usr/bin/cpp.
MFC after: 1 week
2012-02-07 09:27:07 +00:00
Warner Losh
25faff346c
MFtbemd:
...
Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want
to test of all the CPUs of a given family conform.
2010-08-23 22:24:11 +00:00
Ed Schouten
71ccf09269
The last big commit: let usr.sbin/ use WARNS=6 by default.
2010-01-02 11:07:44 +00:00
Doug Rabson
0775314b63
Don't use sys/nfs/rpcv2.h - it is part of the old kernel RPC implementation
...
and will be removed.
2009-06-24 18:42:21 +00:00
Ruslan Ermilov
c004f40325
Don't always link statically with libwrap. By the time amd(8)
...
runs, /usr/lib should have already been mounted.
Found by: make checkdpadd
2008-03-29 18:13:15 +00:00
David E. O'Brien
66a621602d
Teach Amd how to unmount.
2007-12-05 16:50:48 +00:00
David E. O'Brien
f6ab204a30
Accidently created the file with the wrong name.
2007-12-05 16:49:16 +00:00
David E. O'Brien
018facb941
'amu_autofs_prot.h'
2007-12-05 16:47:52 +00:00
David E. O'Brien
c8c5072580
Adjust for new files added to 6.1.5, and files retired from 6.0.10p1.
...
Also TCP Wrappers is now supported.
Also tweak the MK_HESIOD.
2007-12-05 16:40:05 +00:00
David E. O'Brien
3059d0275b
Update for version 6.1.5.
2007-12-05 16:38:29 +00:00
David E. O'Brien
5f03573d96
We now have to use part of the vendor supplied xdr_func.c.
...
util renamed to strutil to be more clear of its purpose.
2007-12-05 16:27:03 +00:00
David E. O'Brien
065b518c8b
These now need to link with libamu.
2007-12-05 16:25:43 +00:00
David E. O'Brien
105f3b4415
Add new BUILD_* knobs, and switch our definition & setting of BUILD_*
...
and configured settings.
2007-12-05 16:23:34 +00:00
David E. O'Brien
c640c5f4d9
Autoconf would have created a symlink from conf/autofs/autofs_default.h
...
to autoamu_autofs_prot.h. It is easier to just create shell header within
the Bmake framework.
For now it's a stub - fill out when we know our Autofs direction.
2007-12-05 16:21:44 +00:00
Ruslan Ermilov
b81594171c
Folded WITH_HESIOD_SUPPORT into WITH_HESIOD.
2006-03-21 09:00:51 +00:00
Ruslan Ermilov
e1fe3dba5c
Reimplementation of world/kernel build options. For details, see:
...
http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html
The src.conf(5) manpage is to follow in a few days.
Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
2006-03-17 18:54:44 +00:00
Poul-Henning Kamp
0c8eca7560
Respect the YES_HESIOD build variable
2005-08-06 16:52:30 +00:00
Ruslan Ermilov
c769f664c9
Generate locale-agnostic configuration date.
2005-02-16 21:02:50 +00:00
Bjoern A. Zeeb
6c58990d47
Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.
...
If turned on no NIS support and related programs will be built.
Lost parts rediscovered by: Danny Braniss <danny at cs.huji.ac.il>
PR: bin/68303
No objections: des, gshapiro, nectar
Reviewed by: ru
Approved by: rwatson (mentor)
MFC after: 2 weeks
2004-11-13 20:40:32 +00:00
Ruslan Ermilov
a35d88931c
For variables that are only checked with defined(), don't provide
...
any fake value.
2004-10-24 15:33:08 +00:00
Martin Blapp
386ecc28e7
Reenable nullfs for local links. The change from 'struct vfsconf'
...
to 'struct xvfsconf' broke auto configuration. Patches have been
submitted to the vendor.
2004-07-15 13:24:44 +00:00
Martin Blapp
fe7e28be1a
Generate fresh aux_conf.h.
2004-07-06 14:06:58 +00:00
Martin Blapp
cef9241945
Check if dirmask' is a member of
pcfs_args_t'.
...
A diff to the autoconf aux-files has been submitted to
the amd people.
PR: 57401
Submitted by: Andre Albsmeier <andre.albsmeier@siemens.com>
2004-07-06 13:44:14 +00:00
Martin Blapp
3e0fc2ab4a
Unbreak pcfs support
...
PR: 68679
2004-07-06 13:37:18 +00:00
Martin Blapp
c6797a4942
Update OS-dependent variables.
2004-07-06 13:24:59 +00:00
Ruslan Ermilov
3ce0bf5144
Removed unnecessary dependencies on librpcsvc.
...
Prodded by: des
2004-02-04 11:59:08 +00:00
Martin Blapp
e20595fe25
Sync with fresh generated file, keep our changed settings. This seems
...
to be a lot cleaner.
2003-09-02 17:38:30 +00:00
Martin Blapp
a3d52360e2
Remove redundant PACKAGE and VERSION defines.
2003-09-02 16:10:46 +00:00
Martin Blapp
bb967f5e67
Update version string.
2003-09-02 15:57:37 +00:00
Martin Blapp
3dc48a9218
Set HAVE_STRUCT_IFREQ_IFR_ADDR, HAVE_STRUCT_FHSTATUS_FHS_FH to 1.
2003-09-02 15:56:05 +00:00
Andrey A. Chernov
90862ca23d
LANG->LC_ALL
...
Pointed by: ru
2003-08-04 21:31:53 +00:00
Andrey A. Chernov
3d2b7661d5
Use LANG=C before egrep A-Z and tr A-Z
...
Note: this is POSIX requirement, c-c ranges are portable only in POSIX locale
Strip [] for tr ranges
2003-08-04 15:57:01 +00:00
David E. O'Brien
052238b16c
style.Makefile(5)
2003-04-04 17:49:21 +00:00
Ruslan Ermilov
423e9124d9
Mark all internal libraries with INTERNALLIB.
2002-05-13 11:24:03 +00:00
Ruslan Ermilov
335612307e
Stop "make depend" from attempting to delete non-existent .depend.
2002-04-11 12:30:20 +00:00
Ruslan Ermilov
eea399e3ac
Removed mentions of TARGET_ARCH from non-cross places.
2001-10-04 14:13:16 +00:00
David E. O'Brien
d6432d1f16
Strip non version _number_ bits from HOST_OS_VERSION.
...
Requested by: knu
2001-09-06 18:39:46 +00:00
David E. O'Brien
5cd462d266
I was missing the HOST_OS_VERSION setting in the fall-back case.
...
Also, the script was too position dependant. We now have make(1) pass in
the file to grub around in to get our settings from.
2001-09-06 17:52:59 +00:00
David E. O'Brien
1b5546b873
Try to determine the OS version and architecture for what is being built
...
vs. the building machine.
PR: 14040
2001-09-05 16:54:20 +00:00
David E. O'Brien
3fe149a643
Opps, let one definition slip out that we define dynamically.
2001-09-03 19:19:12 +00:00
David E. O'Brien
6874428a19
Use the native mount and nfs_prot headers.
...
Also generate nfs_prot_x.c in ANSI-C mode.
2001-09-02 20:37:36 +00:00
David E. O'Brien
890bbd6bda
Update for version 6.0.7.
2001-09-02 19:50:47 +00:00
David E. O'Brien
b20e8db347
Document my tweaks better.
2001-09-02 04:06:48 +00:00
David E. O'Brien
90e655ea4e
Perform a major cleanup of the usr.sbin Makefiles.
...
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.
2001-07-20 06:20:32 +00:00
Ruslan Ermilov
3e7c6a91b1
Added missing dependancy.
...
Submitted by: bde
Approved by: obrien
2001-07-19 19:04:31 +00:00
Ruslan Ermilov
fd2b652a0a
msdos -> msdosfs
...
null -> nullfs
umap -> umapfs
union -> unionfs
Approved by: obrien
2001-06-04 13:08:54 +00:00