Please sign in to comment.
Fix long long little endian detection when cross-compiling
The long long endian detection code does an AC_TRY_RUN() and since that doesn't work when cross-compiling, it sets a fallback value. However, rather than do any sort of default endian detection, the code simply sets it to "no". This probably breaks most little endian systems out there when cross-compiling for them. It certainly breaks Blackfin systems. So use the common endian detection code provided by autoconf and key off of that when cross-compiling. * configure.ac: Call AC_C_BIGENDIAN. * m4/long_long.m4 (AC_LITTLE_ENDIAN_LONG_LONG): Set cross-compiling logic based on ac_cv_c_bigendian. Signed-off-by: Mike Frysinger <email@example.com>
- Loading branch information...