http://cr.opensolaris.org/~wmsch/bug-1938/ http://defect.opensolaris.org/bz/show_bug.cgi?id=1938
Building tbeadm would not work unless SunStudio compiler was present in the path during build, and 'cc' evaluated to the SunStudio compiler before other compilers according the user's path. The Makefile for tbeadm utility program was not using standard procedures. The "CC" compiler definition in the environment file was being ignored since Makefile.master was not being sourced. Changes to tbeadm/Makefile: -Added include of ../Makefile.lib, which includes Makefile.master to set standard environment. -Added missing source file specification. -Added -R compiler option to pass search directories to runtime linker. -Removed execute permission. Tested: built with nightly - logs indicate compiler specified in environment file was used Tested: built with opensolaris_build.sh - likewise Tested: cd tbeadm; make - used compiler specified on environment