sagun shakya wrote:
>
>>> I found that adding the -xcode=pic32 to the CFLAGS fixed it. But when
>>> compiling libpcap 64bit in i386 I get this warning. although the
>>> shared library is built?
>>>
>>> cc: Warning: illegal option -xcode=pic32
>>>
>>
>> My cc man page says:
>>
>> -xcode=v
>> (SPARC) Specify code address space
>>
> OK that would explain. Is it ok to ignore this warning if I I have to
> used the -xcode flag or set TARGETENV64 in my changes depending upon the
> architecture?
It would be better to add the -xcode flags to a sparc-specific flag.
The sfw build doesn't report on warnings but that doesn't mean more
are encouraged, plus later compiler updates could certainly decide to
fail on invalid flags.
Mike