I do the following to create an optimized build on the d0lxbld machines.
Create a local release in the usual manner.
Check out SRT_D0 and modify the the default build option.
> addpkg SRT_D0 > vi SRT_D0/SoftRelTools/compilers/KCC.mk
Check out the following packages:
Build.
> gmake
The script gtr_build_gtr can be used to check out the packages and build. You must still amke the SRT_D0 modifications. As of t01.30.00, it will take of setting up D0RunII and d0setwa.