Date: Sat, 24 Oct 2015 18:20:17 +0000 From: Alexey Dokuchaev <danfe@FreeBSD.org> To: Baptiste Daroussin <bapt@FreeBSD.org> Cc: Thierry Thomas <thierry@FreeBSD.org>, ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: Re: svn commit: r400131 - in head/sysutils/uniutils: . files Message-ID: <20151024182017.GA77173@FreeBSD.org> In-Reply-To: <20151024180757.GE40371@ivaldir.etoilebsd.net> References: <201510241648.t9OGmnYG090145@repo.freebsd.org> <20151024172012.GA52037@FreeBSD.org> <20151024180757.GE40371@ivaldir.etoilebsd.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Oct 24, 2015 at 08:07:57PM +0200, Baptiste Daroussin wrote: > On Sat, Oct 24, 2015 at 05:20:12PM +0000, Alexey Dokuchaev wrote: > > On Sat, Oct 24, 2015 at 04:48:49PM +0000, Thierry Thomas wrote: > > > New Revision: 400131 > > > URL: https://svnweb.freebsd.org/changeset/ports/400131 > > > > > > Log: > > > - Fix hard-coded endian assumption; > > > [...] > > > > > > ++[ $(( $(printf '\1' | od -dAn) )) -eq 1 ] && end=le || end=be > > > > Nice trick! ;) > > Nice trick for sure, but not really cross building friendly :( Hmm, right, didn't think of that. Perhaps the framework should provide some {HOST,TARGET}_ENDIANNESS variables (if it does not already)? ./danfe
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151024182017.GA77173>