Gentoo Archives: gentoo-alt

From: Markus Duft <mduft@g.o>
To: gentoo-alt@l.g.o
Subject: RE: [gentoo-alt] -arch on OS X
Date: Fri, 21 Nov 2008 09:57:04
Message-Id: 009301c94bbe$c785bd70$56913850$@org
In Reply to: Re: [gentoo-alt] -arch on OS X by Fabian Groffen
1 >
2 > On 20-11-2008 14:01:18 -0500, John Gibson wrote:
3 > > The standard Apple version of gcc supports -arch arguments to allow
4 > for
5 > > the building of universal binaries (i.e. gcc -arch x86 -arch ppc -c
6 > > foo.c).
7 > > I noticed that my portage version of Apple''s gcc doesn't support
8 > this.
9 > > 4.0.1 ignores multiple -arch arguments and only produces x86 binaries
10 > > (I'm on x86 OS X 10.4).
11 > > 4.2.1 just gives me cc1: error: unrecognized command line option "-
12 > arch"
13 >
14 > I'm not sure what apple does to get this working.
15 >
16 > > Is there some other way to build universal binaries, or is that just
17 > not
18 > > supported in prefixed portage?
19 >
20 > Well, it belongs to the domain of multilib, do it's not supported. If
21 > you want to do that, build a proper cross-compiler targetted for the
22 > other arch. That should work (it did once for me).
23
24 You could also use a cross-prefix target. For this to work you have to emerge portage with USE=cross-prefix, emerge 'cross-prefix-setup' and call it (will print some usage help). This way you'll have a lot less things to re-emerge.
25
26 Cheers, Markus
27
28 >
29 >
30 > --
31 > Fabian Groffen
32 > Gentoo on a different level