From owner-freebsd-questions@FreeBSD.ORG Wed Jan 13 02:41:55 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83157106566C for ; Wed, 13 Jan 2010 02:41:55 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-ew0-f211.google.com (mail-ew0-f211.google.com [209.85.219.211]) by mx1.freebsd.org (Postfix) with ESMTP id 133C88FC15 for ; Wed, 13 Jan 2010 02:41:54 +0000 (UTC) Received: by ewy3 with SMTP id 3so19129282ewy.13 for ; Tue, 12 Jan 2010 18:41:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=WrGqsUDfuKMElT8zbYwnD3e20CWWfMDWwKAMDHINEko=; b=dgyDGxXbnehFa2yWfyveHV0U3FX7V8p7ih52pqzDDE77V2LG3hNlYxaQCUYuNJxY2o BR48JxnVxqiUanp+4VCxPY1xl0gLmSuEl+tvQhwCBekSSyGjwYHFC9lBLPSGYgXtdhHJ jjqukrXcsTIPDHsv0OJZpDTSzlKGDpWDdWVHc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=O0y/UHUqfl/W1dRA2y6tOa1FfbSSUByGdnlSG8Y6d1+xLRy62TMLgz9nRUuRaOvJBE OGUFdwJKUm9Dn6rkO9aqs/5Ll3ZRfTN3amuc4JydYWMpOanKWZG8k/YnIFV41jLUx0HK AYRlzZpwbiKkelmIEI70SASs9uUNCmbAKDPU8= Received: by 10.213.97.22 with SMTP id j22mr346522ebn.96.1263350511379; Tue, 12 Jan 2010 18:41:51 -0800 (PST) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id 15sm5828664ewy.12.2010.01.12.18.41.50 (version=SSLv3 cipher=RC4-MD5); Tue, 12 Jan 2010 18:41:50 -0800 (PST) Date: Wed, 13 Jan 2010 02:41:46 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20100113024146.2786efa3@gumby.homeunix.com> In-Reply-To: References: X-Mailer: Claws Mail 3.7.3 (GTK+ 2.18.5; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Endianness X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jan 2010 02:41:55 -0000 On Tue, 12 Jan 2010 12:51:00 -0800 Rob Farmer 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.