illumos will not build against gcc compiled perl
Previous title: cw doesn't understand gnu c options
The problem is that cw expects to get Studio options, including -KPIC and -xO3.
When it receives -fPIC -DPIC and -O3, it fails. These options can come from perl makemaker. And perl makemaker gets them from current perl environment.
It seems that cw should be updated to understand GCC options (at least -On and -fPIC/-fpic/-DPIC).