[Build-common-hackers] Bug#450483: Bug#450483: cdbs: Stop setting DEB_CONFIGURE_SCRIPT_ENV in order to enable cross-building

Neil Williams codehelp at debian.org
Wed Nov 7 19:02:56 UTC 2007

On Wed, 7 Nov 2007 19:09:01 +0100
Peter Eisentraut <peter_e at gmx.net> wrote:

Forgot to keep the bug report in CC. Sorry.

> Neil Williams wrote:
> > Actually, packages fail to cross compile with it set because CDBS
> > sets 'gcc'
> It does no such thing.

It does - CC=gcc

The effect of DEB_CONFIGURE_SCRIPT_ENV is that the package tries to
cross build using gcc which simply breaks.

Unset DEB_CONFIGURE_SCRIPT_ENV for the crossbuild and gcc gets the
value from --host and works fine.

This is ONLY relevant for cross building and cross building support has
been entirely rewritten recently. The main change was to stop passing
CC to all packages so that certain packages could get a sensible
setting for CC_FOR_BUILD. The $(CC) setting should come from --host, NOT

Unset DEB_CONFIGURE_SCRIPT_ENV and the cross build gets $(CC) from --host
as it should.


Neil Williams

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/build-common-hackers/attachments/20071107/dbbbf89c/attachment.pgp 

More information about the Build-common-hackers mailing list