Quick note: refer to HEADS UP: Building a 6.X or 5.X Jail on -CURRENT
Get the patch: http://www.marcuscom.com/downloads/binutils.diff
Save the following code to 6.hook.sh:
#!/bin/sh
major_version=$(echo ${JAIL} | sed -E -e ‘s|(^.).*$|1|’)
if [ ${major_version} -le 6 ]; then
cd ${SRCBASE}
patch -p1 < /path/to/binutils.diff
fi
exit 0
and execute the command:
% `./tc updateHookCmd -h preJailBuild -c 6.hook.sh
Remember chmod u+x for 6.hook.sh.