On Thu, Feb 15, 2007 at 03:46:46PM +0900, Deepak Bhatia wrote: > I want to disable the CW - Compiler wrapper and just use GCC for SH > Processor to cross compile the > files for SH Target. Please help in resolving this. Like which Makefile to > change etc.
Perhaps I was unclear. SH is not supported by the operating system source itself. If you're trying to build a single userland library or command for SH, that may be possible with some ordinary effort, but you will have to resolve the more general cross-compilation problems I pointed you toward previously. A full build for any architecture other than x86 or SPARC is not possible without major engineering effort, for reasons unrelated to the compiler wrapper, the makefiles, or cross-compilation support. The code simply does not understand that architecture. If you want to understand the compiler wrapper and why it is used, please read and understand http://opensolaris.org/os/community/tools/gcc/rationale/ and http://opensolaris.org/os/community/tools/gcc/shadow/ and http://opensolaris.org/os/community/tools/gcc/flagday/ first. We spent almost a year carefully planning and executing these changes to reduce maintenance costs and engineering burdens. The approach you are suggesting would require changes to every single makefile and would double the cost of every subsequent makefile change. It is insane, will waste months of your time, and will not be accepted into the gate. Please don't pursue it. To disable the shadow compiler and invoke only gcc, set __GNUC as you've been doing and also set CW_NO_SHADOW=1 in your environment. That will cause only gcc to be invoked; the overhead of the wrapper is negligible. You will still have to contend with both porting (which may or may not involve adding code to cw - you can probably get by for now using only -_gcc=<flag> since you only need to support gcc builds) and fixing cross-compilation support. Again, I suggest you talk with the PowerPC and s390 porting teams, who will have recent experience in these areas. -- Keith M Wesolowski "Sir, we're surrounded!" FishWorks "Excellent; we can attack in any direction!" _______________________________________________ opensolaris-help mailing list [email protected]
