From c2b515c1d39ff4711c1e677df46f634cd955bfe0 Mon Sep 17 00:00:00 2001
From: Silvino Configure pkgmk and define number of cores available,
- in this example get dynamically Edit /etc/pkgmk.conf and
+ in this example get dynamically Edit
+ /etc/pkgmk.conf and
set ccaching directory and instructs to use distcc
backend;
- 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"
Configure distcc daemon, edit -- cgit 1.4.1-2-gfad0