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

Re: Long-term mass bug filing for crossbuild support



On Tue, Nov 06, 2007 at 01:04:48PM +0000, Neil Williams wrote:
> 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
> 
> ...
> 
> ./configure $(CROSS) ..

Please read /usr/share/doc/autotools-dev/README.Debian.gz, and use
--build for non cross compiled code.

> or just $(MAKE):
> ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
> CROSS=CC=$(DEB_HOST_GNU_TYPE)-gcc
> else
> CROSS=
> endif
> 
> ...
> 
> $(MAKE) $(CROSS) ...

I guess that's in the case of not using configure?


Kurt



Reply to: