Gentoo Archives: gentoo-ppc-dev

From: Pieter Van den Abeele <pvdabeel@××××××.be>
To: gentooppc-dev@g.o
Subject: Re: [gentooppc-dev] detecting PPC builds
Date: Thu, 25 Apr 2002 03:10:31
Message-Id: 200204250810.g3P8ABW00546@excalibur.skynet.be
In Reply to: Re: [gentooppc-dev] detecting PPC builds by Mark Guertin
This works best:

SYSTEM_ARCH=`echo $ARCH |\
  sed -e s/[i]*.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/`
if [ -z "$SYSTEM_ARCH" ]
then
SYSTEML_ARCH=`uname -m |\
     sed -e s/[i]*.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e 
s/sa110/arm/`
fi 

$ARCH is very important to be able to cross-compile, but it isn't implemented 
in portage yet (but works most of the time) `uname -m` or `arch` should only 
be used when no $ARCH is available

Regards,

Pieter



On Thursday 25 April 2002 01:23, you wrote:
> Currently the ARCH variable is set in your /etc/make.profile (I think > that¹s the right file) and that is used to detect your arch. (ARCH=ppc) > > Dunno if this will help you or not but thought I would put my 2 cents worth > in > > Mark > > > Hi, > > > > I'm looking to fix the most ebuild. What's a good trick to detect > > powerpc build situation? What is used currently? > > > > thx > > Gontran > > _______________________________________________ > > gentooppc-dev mailing list > > gentooppc-dev@g.o > > http://lists.gentoo.org/mailman/listinfo/gentooppc-dev > > _______________________________________________ > gentooppc-dev mailing list > gentooppc-dev@g.o > http://lists.gentoo.org/mailman/listinfo/gentooppc-dev
-- Pieter Van den Abeele pvdabeel@××××××.be