[Queue-developers] solaris gcc cross-compile cure
Brought to you by:
wkrebs
From: Sam L. <sam...@an...> - 2001-04-10 08:43:01
|
The reason ./configure thinks solaris gcc is a cross compiler is because some of the test cases (like to detect endian-ness) fail either way; so it assumes the test could not run because it is a cross compiler. I looked at why the bigendian test failed to run either way, it seems to be because solaris does *NOT* define either: BYTE_ORDER or BIG_ENDIAN or LITTLE_ENDIAN anywhere! (Well, maybe in /usr/include/arpa/nameser_compat.h (ultimatly included from resolv.h) but possibly that is not part of the standard install?) /usr/include/sys/isa_defs.h DOES define _LITTLE_ENDIAN, _BIG_ENDIAN but not BYTE_ORDER _BIG_ENDIAN and _LITTLE_ENDIAN are not defined to have values, but just to be "set" BYTE_ORDER is only defined in name_ser.compat So whats the best way to solve this for solaris? Sam |