[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cross-build-essential



On Thu, Jun 28, 2012 at 10:29:20AM +0100, Simon McVittie wrote:
> On 28/06/12 10:17, Goswin von Brederlow wrote:
> > Say I want to have the build-essential for i386 installed on amd64.
> > I could install build-essential:i386, replacing gcc/g++:amd64 with
> > gcc/g++:i386. Wouldn't that give me everything needed to cross-compile
> > for i386?
> 
> For evolutions of the same CPU family (i386 vs amd64, powerpc vs
> powerpc64) this sort of works, but after you've installed gcc:i386, you
> can't compile 64-bit code any more (until you reinstall gcc:amd64).
[...]

Sure you can (-m64).  (But you'll need to have the proper headers
installed.)

Ben.

-- 
Ben Hutchings
We get into the habit of living before acquiring the habit of thinking.
                                                              - Albert Camus


Reply to: