Update, build and install world and kernel

Prepare to build

by ross at 08:06:38 on October 2, 2012

/etc/src.conf — source build options

This file is usually empty, but if you need to tune building of the system you can create this file. Refer to src.conf(5).

I use CUPS with option CUPS_OVERWRITE_BASE so I have this in src.conf:

WITHOUT_LPR=YES

This is to avoid replacing CUPS with standard LPR when doing installworld.


When doing delete-old answer "no" to questions whether to delete lp* binaries.

/etc/make.conf — system build information

Copy /usr/share/examples/etc/make.conf to /etc/make.conf. Edit it to match your system.

diff -u /usr/share/examples/etc/make.conf /etc/make.conf

--- /usr/share/examples/etc/make.conf   2008-09-27 00:22:11.000000000 +0300
+++ /etc/make.conf      2008-09-27 13:09:39.000000000 +0300
@@ -43,6 +43,7 @@
 # (?= allows to buildworld for a different CPUTYPE.)
 #
 #CPUTYPE?=pentium3
+CPUTYPE?=athlon
 #NO_CPU_CFLAGS=                # Don't add -march=<cpu> to CFLAGS automatically
 #NO_CPU_COPTFLAGS=     # Don't add -march=<cpu> to COPTFLAGS automatically
 #
@@ -57,6 +58,7 @@
 # explicitly turn it off when using compiling with the -O2 optimization level.
 #
 #CFLAGS= -O2 -fno-strict-aliasing -pipe
+CFLAGS= -O2 -fno-strict-aliasing -pipe
 #
 # CXXFLAGS controls the compiler settings used when compiling C++ code.
 # Note that CXXFLAGS is initially set to the value of CFLAGS.  If you wish
@@ -88,6 +90,7 @@
 # so can cause problems.
 #
 #COPTFLAGS= -O -pipe
+COPTFLAGS= -O -pipe
 #
 # Compare before install
 #INSTALL=install -C

 

Comments