0937df81ca
through the use of a new build directive, MACHINE_CPU, which contains a list of the CPU generations/features for which optimizations are desired. This feature will be extended to cover the ports tree in the future. Currently OpenSSL provides optimizations for i386, i586 and i686-class CPUs. Currently it has not been tested on an i386 or i486. Teach make(1) to provide sensible defaults for MACHINE_CPU if it is not defined (namely, the lowest common denominator CPU we support for each architecture). Currently this is i386 for the i386 architecture and ev4 for the alpha. sys.mk also sets the variable as a last resort for consistency with MACHINE_ARCH and bootstrapping from very old versions of make. Benchmarks show a significant speed increase even in the i386 case, with additional improvements for i586 and i686 systems. For maximum performance define MACHINE_CPU=i686 i586 i386 in /etc/make.conf. Based on a patch submitted by: Mike Silbersack <silby@silby.com> Reviewed by: current |
||
---|---|---|
.. | ||
bsd.dep.mk | ||
bsd.doc.mk | ||
bsd.docb.mk | ||
bsd.info.mk | ||
bsd.kern.mk | ||
bsd.kmod.mk | ||
bsd.lib.mk | ||
bsd.libnames.mk | ||
bsd.man.mk | ||
bsd.obj.mk | ||
bsd.own.mk | ||
bsd.port.mk | ||
bsd.port.post.mk | ||
bsd.port.pre.mk | ||
bsd.port.subdir.mk | ||
bsd.prog.mk | ||
bsd.README | ||
bsd.sgml.mk | ||
bsd.subdir.mk | ||
Makefile | ||
sys.mk |