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

Re: Long-term mass bug filing for crossbuild support



On Tue, 6 Nov 2007 19:35:41 +0100
Mike Hommey <mh@glandium.org> wrote:

> On Tue, Nov 06, 2007 at 01:04:48PM +0000, Neil Williams wrote:
> > 
> > The most common change is simply to retrieve the cross-building
> > metadata from dpkg-architecture in debian/rules:
> > http://wiki.debian.org/EmdebianGuide
> > 
> > DEB_HOST_GNU_TYPE=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
> > DEB_BUILD_GNU_TYPE=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
> > 
> > Depending on whether the package uses ./configure:
> > ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
> > CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
> > else
> > CROSS=
> > endif
> 
> Shouldn't packages be using these --build and --host arguments already
> even if not cross-building ?

No. There is no need to specify --build and --host if not cross-compiling.

-- 

Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgpoMjTyAaxZW.pgp
Description: PGP signature


Reply to: