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

Re: Host system type detected by autoconf



On Sun, Jul 01, 2001 at 01:29:09AM -0400, sharkey@superk.physics.sunysb.edu wrote:

> > On Sun, Jul 01, 2001 at 10:12:34AM +0530, Viral wrote:
> > 
> > > How do I get my packages to build for the host type 'i386-pc-linux-gnu'
> > > rather than 'i686-pc-linux-gnu' ?
> > 
> > Use the --host switch to configure.
> 
> Uh, how would you do that?

Uh, "configure --host=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)".

> I mean, what would you add to your debian/rules file to specify that if the
> detected architecture is i686-pc-linux-gnu it should compile for
> i386-pc-linux-gnu, without screwing up compilation of the same source on
> sparc/arm/alpha/etc.

dpkg-architecture will always give the Debian architecture, which is what
should be used for building packages.  In the case of ia32, that will be i386.

-- 
 - mdz



Reply to: