diff options
author | Silvino <silvino@bk.ru> | 2019-06-11 04:34:38 +0100 |
---|---|---|
committer | Silvino <silvino@bk.ru> | 2019-06-11 04:34:38 +0100 |
commit | c2b515c1d39ff4711c1e677df46f634cd955bfe0 (patch) | |
tree | 4b364d775a93787e444a608a9ac7937b819a0546 /core/ports.html | |
parent | f0c45e7842ef205123124ba7ec2a1d044749c328 (diff) | |
download | doc-c2b515c1d39ff4711c1e677df46f634cd955bfe0.tar.gz |
fix pkgmk.conf distcc pump mode
Diffstat (limited to 'core/ports.html')
-rw-r--r-- | core/ports.html | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/core/ports.html b/core/ports.html index d7ea41c..bbb8472 100644 --- a/core/ports.html +++ b/core/ports.html @@ -199,7 +199,8 @@ </pre> <p>Configure pkgmk and define number of cores available, - in this example get dynamically Edit /etc/pkgmk.conf and + in this example get dynamically Edit + <a href="conf/pkgmk.conf">/etc/pkgmk.conf</a> and set ccaching directory and instructs to use distcc backend;</p> @@ -216,17 +217,20 @@ be configured on /etc/hosts.</p> <pre> - export DISTCC_DIR="/usr/ports/distcc" - - # compile using ccache and distcc - export DISTCC_HOSTS="localhost/4 xborg/4" - - # compile using distcc without ccache - #export PATH="/usr/lib/distcc/:$PATH" - #export DISTCC_HOSTS="localhost/4,lzo,cpp xborg/4,lzo,cpp cb1/2,lzo,cpp" + ### compile using distcc without ccache + ##export PATH="/usr/lib/distcc/:$PATH" + ##export DISTCC_HOSTS="localhost/4,lzo,cpp xborg/4,lzo,cpp" + ##export PUMP_BUILD=yes - export MAKEFLAGS="-j $(/usr/bin/distcc -j 2> /dev/null)" + # distcc settings + export JOBS=$(/usr/bin/distcc -j 2> /dev/null) + export DISTCC_DIR="/usr/ports/distcc" + export MAKEFLAGS="-j ${JOBS}" export SCONSFLAGS="$MAKEFLAGS" + + # local compile only + #export JOBS=$(nproc) + #export MAKEFLAGS="-j $JOBS" </pre> <p>Configure distcc daemon, edit |