Bug#852360: Cross compiling and Bug#852360
Lukas Schwaighofer
lukas at schwaighofer.name
Fri Apr 14 10:48:49 UTC 2017
Hello Helmut,
On Thu, 13 Apr 2017 22:05:02 +0200
Helmut Grohne <helmut at subdivi.de> wrote:
> > Does that mean that the snippet
> > > include /usr/share/dpkg/architecture.mk
> > > ifeq ($(origin CC),default)
> > > export CC := $(DEB_HOST_GNU_TYPE)-gcc
> > > endif
> > can be removed again from debian/rules? I tried to cross compile for
> > armhf without that snipped using pbuilder (following the
> > instructions from https://wiki.debian.org/CrossCompiling) which
> > worked: The correct compiler was called and the binaries had the
> > same sha512sum thanks to reproducible builds.
>
> I think you perfectly answered your own question. Performing a test
> build under sbuild or pbuilder and looking at which compiler is being
> used is a good approach to answer it. There isn't anything more to it.
> Your own analysis clearly says that exporting CC is no longer
> necessary.
Thanks for clarifying. I was unsure because the version the bug was
filed against had already switched to debhelper 10 (so this shouldn't
have been a problem in the first place).
> I'm also happy that apparently cross building using pbuilder is no
> longer too hard for the uninitiated. Good work, Mattia! :)
I agree. This was my first time cross compiling anything, and the
process was very smooth. Thanks for that!
Regards
Lukas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-security-team/attachments/20170414/cd94713c/attachment-0001.sig>
More information about the Pkg-security-team
mailing list