[csw-devel] Unknown flag '-xcode=pic32' on Sun Studio 11 x86 when compiling ncurses 5.7

Dagobert Michelsen dam at opencsw.org
Fri Jan 2 18:25:58 CET 2009


Hi,

there was a change in Solaris flags some time ago:

20080614
	...
         + change CC_SHARED_OPTS from -KPIC to -xcode=pic32 for Solaris.
	...

This flag is only allowed on Sparc and invalid on
Sun Studio 11 x86 (from cc(1)):

      -xcode=v
           (SPARC) Specify code address space

On Sparc -xcode=pic32 is identical to the obsoleted option -KPIC,
however on x86 there is no -xcode and -KPIC is equivalent -Kpic.
I guess is may be best if it would be checked during compilation
if the compiler accepts -xcode.


Best regards

   -- Dagobert Michelsen



More information about the devel mailing list