[Ecls-list] Solaris SPARC issues (from latest CVS) - using Sun compiler.

Gabriel Dos Reis gdr at integrable-solutions.net
Sat Aug 1 23:12:06 UTC 2009


On Sat, Aug 1, 2009 at 4:16 PM, Dr. David Kirkby<david.kirkby at onetel.net> wrote:

> Here's some compiler warnings noted. Generally the Sun compiler is a lot
> more fussy than the GNU one.
>
> 1) There are lots of warnings about llegal option -d=gnu99
>
> cc: Warning: illegal option -d=gnu99
> cc: Warning: illegal option -d=gnu99
> cc: Warning: illegal option -d=gnu99

The problem here is that the GNU-specific option

     -std=gnu99

was specified on the command line, regardless of the brand
of the compiler.  Apparently, the Sun C compiler
can make sense of '-st' and is left with '-d=gnu99'.
Classic culture shock between different compilers.

What ECL's configure should do (if it can) is to supply the
option -std=gnu99 only when it is sure that the C compiler is
from GNU.  E.g. somewhere in configure.in

case $GCC in
   yes) ecl_cflags="-std=gnu99 $ecl_flags"
esac

AC_SUBST(ecl_cflags)

where ecl_cflags is the ECL's shell variable that accumulates appropriates
C compiler flags at configure time.

-- Gaby




More information about the ecl-devel mailing list