Steven Stallion wrote:
> All,
> 
> Is there an approved method for forcing a given specfile to use GCC?
> 
> Unfortunately, if CC is not set to gcc when the specfile is invoked,
> including Solaris.inc will set optflags and _ldflags incorrectly.
> 
> The only solution I have been able to think of so far, is to create a
> new base spec named 'requires_gcc.inc' which is included after
> Solaris.inc which forcibly sets optflags and _ldflags.
> 
> It would be idea if it was possible to override CC/CXX prior to
> including Solaris.inc, however I was not able to find any mechanism to
> do so.

It should be very rare that you have a build that *requires* gcc.

In fact, if this is a C++ application, it is pretty much mandatory that 
it be built with Sun Studio for compatibility reasons.

However, I agree that this should be possible for those cases where it 
is necessary.

Can you elaborate on this particular case's need for gcc?

Cheers,
-- 
Shawn Walker

Reply via email to