freebsd-skq/share/mk
bdrewery b619f0c747 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
..
atf.test.mk Rework privatelib/internallib 2014-08-06 22:17:26 +00:00
bsd.arch.inc.mk
bsd.compiler.mk Allow CC to not actually exist. During the ports INDEX run, all the 2014-05-23 14:34:22 +00:00
bsd.cpu.mk Support CXXFLAGS.${MACHINE_ARCH} as well as CFLAGS. This allows different 2014-07-08 14:37:01 +00:00
bsd.crunchgen.mk NO_DEBUG_FILES -> MK_DEBUG_FILES=no in last remaining place. 2014-04-25 19:25:18 +00:00
bsd.dep.mk Make sure the DTrace header files are built before depend and before 2014-08-13 01:27:51 +00:00
bsd.doc.mk Move DOCCOMPRESS to MK variable. 2014-05-10 16:38:54 +00:00
bsd.endian.mk Remove ia64. 2014-07-07 00:27:09 +00:00
bsd.files.mk Ensure files are created during the build when using bsd.subdir.mk. 2014-06-09 14:36:49 +00:00
bsd.incs.mk Eliminate NO_INCS. It is used one place, and MK_TOOLCHAIN=no will 2014-04-25 19:25:45 +00:00
bsd.info.mk Replace all known uses of ln in the build process with appropriate 2013-01-21 22:40:39 +00:00
bsd.init.mk Include bsd.opts.mk before Makefile.inc so Makefile.inc can do things 2014-04-24 02:02:51 +00:00
bsd.kmod.mk Fix comma splice, can't ambiguity and quoting. 2012-02-16 21:04:47 +00:00
bsd.lib.mk Make sure the DTrace header files are built before depend and before 2014-08-13 01:27:51 +00:00
bsd.libnames.mk Rework privatelib/internallib 2014-08-06 22:17:26 +00:00
bsd.links.mk Replace all known uses of ln in the build process with appropriate 2013-01-21 22:40:39 +00:00
bsd.man.mk Convert NO_MANCOMPRESSED to MK_MANCOMPRESSED. 2014-04-18 17:03:49 +00:00
bsd.mkopt.mk Spell always the more traditional way. 2014-05-09 04:49:43 +00:00
bsd.nls.mk
bsd.obj.mk bsd.lib.mk does not add OBJS etc to CLEANFILES so does not automatically 2014-07-22 00:42:55 +00:00
bsd.opts.mk Revert r267233 for now. PIE support needs to be reworked. 2014-08-19 15:04:32 +00:00
bsd.own.mk Better documentation for why KERBEROS and OPENSSH are here, and where 2014-05-27 16:30:54 +00:00
bsd.port.mk Revert unapproved commit to bsd.port.mk. 2011-10-08 18:25:01 +00:00
bsd.port.options.mk
bsd.port.post.mk
bsd.port.pre.mk
bsd.port.subdir.mk
bsd.prog.mk Revert r267233 for now. PIE support needs to be reworked. 2014-08-19 15:04:32 +00:00
bsd.progs.mk Make bsd.progs.mk work in directories with SCRIPTS but no PROGS. 2013-12-11 03:41:07 +00:00
bsd.README Document an important, but easy to overlook without grepping the 2014-07-25 21:10:30 +00:00
bsd.snmpmod.mk
bsd.subdir.mk Create a mechanism for providing fine-grained build order dependencies 2014-06-15 13:45:37 +00:00
bsd.symver.mk
bsd.sys.mk Remove ia64. 2014-07-07 00:27:09 +00:00
bsd.test.mk Put the test suite in its own tests.txz distribution file. 2014-06-10 17:04:30 +00:00
Makefile Remove bsd.dtrace.mk. 2014-07-12 07:46:18 +00:00
plain.test.mk Fix atf-sh's integration_test 2014-07-09 00:55:50 +00:00
src.libnames.mk Make the libbsdstat useful again. 2014-08-13 19:43:22 +00:00
src.opts.mk Enable MK_TESTS by default, take 2. 2014-07-16 21:40:11 +00:00
src.sys.mk We do not ever want _srcconf_included_ as MAIN target. 2014-07-28 23:36:21 +00:00
suite.test.mk Move FreeBSD Test Suite-specific code to a suite.test.mk file. 2014-03-14 12:52:55 +00:00
sys.mk Reviewed by: imp 2014-07-26 04:38:09 +00:00
tap.test.mk Fix atf-sh's integration_test 2014-07-09 00:55:50 +00:00
version_gen.awk