[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Endianess testing?



* Ole Streicher <olebole@debian.org>, 2015-09-26, 14:26:
how do I test the endianess of a system for the inclusion in debian/rules?

lscpu | fgrep -q "Little Endian"

comes in my mind; but is this safe? qemu-userland would probably report something wrong here?

lscpu exists only on Linux, and it wouldn't do the right thing for cross-building.

As Rene said, use DEB_HOST_ARCH_ENDIAN.

--
Jakub Wilk


Reply to: