I've tried:
$ perl Configure.pl --cc=gcc --link=gcc --ld=gcc --cxx=gcc
--verbose-step=gcc
and got:
Determining if your C compiler is actually gcc...gcc
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO
-I./include -c test.c
gcc: language arch=v8 not recognized
From perl -V:
Compiler:
cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-xarch=v8 -D_TS_ERRNO',
optimize='-xO3 -xspace -xildoff',
That is, our config system is still using perl5 config vars blindly w/o
further inspection and ignores commandline option at least partially.
$ uname -a
SunOS z1.t2000.develooper.com 5.10 Generic_118833-03 sun4v sparc
SUNW,Sun-Fire-T200
$ perl -v
This is perl, v5.8.4 built for sun4-solaris-64int
$ cc -V
cc: Sun C 5.8 2005/10/13
$ gcc --version
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
BTW compiling/testing Parrot w Sun cc 5.8 works fine (except some +-0
quirks in complex.t)
leo