aboutsummaryrefslogtreecommitdiff
path: root/etc/defaults/make.conf
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2001-02-19 03:59:05 +0000
committerKris Kennaway <kris@FreeBSD.org>2001-02-19 03:59:05 +0000
commit0937df81ca9895fcef7b43e9e10bff718e339568 (patch)
tree4c2272756af48b02e85803bbac5f1e9c8598602e /etc/defaults/make.conf
parent12a586bbda4b442ecd32fa2ed0b52d5b8e7e8620 (diff)
downloadsrc-0937df81ca9895fcef7b43e9e10bff718e339568.tar.gz
src-0937df81ca9895fcef7b43e9e10bff718e339568.zip
Introduce support for using OpenSSL ASM optimizations. This is done
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
Notes
Notes: svn path=/head/; revision=72679
Diffstat (limited to 'etc/defaults/make.conf')
-rw-r--r--etc/defaults/make.conf15
1 files changed, 14 insertions, 1 deletions
diff --git a/etc/defaults/make.conf b/etc/defaults/make.conf
index 9e9d66978c9c..41ad7bf38cda 100644
--- a/etc/defaults/make.conf
+++ b/etc/defaults/make.conf
@@ -13,6 +13,19 @@
# You have to find the things you can put here in the Makefiles and
# documentation of the source tree.
#
+#
+# MACHINE_CPU controls which processor-specific optimizations will be
+# used by certain components of FreeBSD (currently only OpenSSL).
+# This should be set to a list of your CPU type, plus all previous
+# generations of the CPU architecture. The reason for using a list is
+# because not all programs which use the MACHINE_CPU variable may have
+# optimizations for your specific CPU generation (e.g. Pentium Pro),
+# but may have optimizations for the previous generation (e.g. Pentium).
+# Currently only the following CPU generations are used:
+# i686 i585 i386
+#
+#MACHINE_CPU=i686 i586 i386
+#
# CFLAGS controls the compiler settings used when compiling C code.
# Note that optimization settings above -O (-O2, ...) are not recommended
# or supported for compiling the world or the kernel - please revert any
@@ -82,7 +95,7 @@ BDECFLAGS= -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \
#NOGAMES= true # do not build games (games/ subdir)
#NOINFO= true # do not make or install info files
#NOLIBC_R= true # do not build libc_r (re-entrant version of libc)
-#NOPERL= true # To avoid building perl
+#NOPERL= true # do not build perl. Disables OpenSSL optimizations
#NOPROFILE= true # Avoid compiling profiled libraries
#NOSECURE= true # do not build crypto code in secure/ subdir
#NOSHARE= true # do not go into the share subdir