[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
Sun Nov 25 17:56:26 UTC 2007


Loïc Minier wrote:
> On Sat, Nov 24, 2007, Neil Williams wrote:
>> ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
>> DEB_MAKE_ENVVARS=CC=$(DEB_HOST_GNU_TYPE)-gcc
>> endif
> 
>  Why set CC in cdbs instead of setting it in the cross build env?

Please read the rest of the bug report, CC was set in the cross build
environment before the cross build support was rewritten. The rewrite
was done because if CC *is* set in the environment, it prevents
CC_FOR_BUILD from operating and therefore packages that need to build
tools during the cross build fail to build - like libx11.

The rewritten cross building support now allows all packages to cross
build successfully.

This change in CDBS is because the same change is needed in *all* CDBS
packages that use a makefile without a ./configure and I would rather
fix the problem in CDBS than have to apply precisely the same patch to
each package in this situation.

Therefore, CC must NOT be set by the cross build environment because CC
will break more packages than it fixes. Those CDBS packages that use
only a Makefile without ./configure, there is no way of passing the
correct CC from the cross build environment - it needs to come from CDBS.

-- 


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.alioth.debian.org/pipermail/build-common-hackers/attachments/20071125/8f0e3355/attachment.pgp 


More information about the Build-common-hackers mailing list