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
1 This works best:
2
3 SYSTEM_ARCH=`echo $ARCH |\
4 sed -e s/[i]*.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/`
5 if [ -z "$SYSTEM_ARCH" ]
6 then
7 SYSTEML_ARCH=`uname -m |\
8 sed -e s/[i]*.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e
9 s/sa110/arm/`
10 fi
11
12 $ARCH is very important to be able to cross-compile, but it isn't implemented
13 in portage yet (but works most of the time) `uname -m` or `arch` should only
14 be used when no $ARCH is available
15
16 Regards,
17
18 Pieter
19
20
21
22 On Thursday 25 April 2002 01:23, you wrote:
23 > Currently the ARCH variable is set in your /etc/make.profile (I think
24 > that¹s the right file) and that is used to detect your arch. (ARCH=ppc)
25 >
26 > Dunno if this will help you or not but thought I would put my 2 cents worth
27 > in
28 >
29 > Mark
30 >
31 > > Hi,
32 > >
33 > > I'm looking to fix the most ebuild. What's a good trick to detect
34 > > powerpc build situation? What is used currently?
35 > >
36 > > thx
37 > > Gontran
38 > > _______________________________________________
39 > > gentooppc-dev mailing list
40 > > gentooppc-dev@g.o
41 > > http://lists.gentoo.org/mailman/listinfo/gentooppc-dev
42 >
43 > _______________________________________________
44 > gentooppc-dev mailing list
45 > gentooppc-dev@g.o
46 > http://lists.gentoo.org/mailman/listinfo/gentooppc-dev
47
48 --
49 Pieter Van den Abeele
50 pvdabeel@××××××.be