Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jan 2010 02:41:46 +0000
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Endianness
Message-ID:  <20100113024146.2786efa3@gumby.homeunix.com>
In-Reply-To: <b025ceb71001121251m77ae380fs129699f7bd2a896e@mail.gmail.com>
References:  <b025ceb71001121251m77ae380fs129699f7bd2a896e@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 12 Jan 2010 12:51:00 -0800
Rob Farmer <rfarmer@predatorlabs.net> wrote:

> I'm trying to create a port of an application which only works on
> little endian systems and I'm trying to figure out how to set
> ONLY_FOR_ARCHS.  Wikipedia says PowerPC, Sparc, and IA64 are bi-endian
> and the OS chooses the mode. I'm not familiar with these platforms -
> I'm sure it has been answered somewhere, but I can't find it - which
> FreeBSD archs are little/big endian? Thanks.

Perhaps your makefile could check endianess on the build machine and set
IGNORE if it's bigendian, e.g. if the output of "file /bin/ls" doesn't
contain LSB.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100113024146.2786efa3>