[Pkg-xen-devel] [PATCH 5/9] debian/rules: Set CC/LD for cross-building

Hans van Kranenburg hans at knorrie.org
Mon Nov 30 21:45:06 GMT 2020


On 7/17/20 4:07 AM, Elliott Mitchell wrote:
> Set $(CC) and $(LD) when building.

Ok, that's the what.

Now the why.

> People building ARM executables on ARM hosts aren't that common.

I expect something like:

"When not setting both CC and LD, and trying to do XYZ, we'd run into a
failure which looks like QRS. This failure only will occur in a
situation where we try to DEF while wanting to GHI.

For the regular case, building ARM on ARM (on any
non-cross-build-situation), this is effectively a NOOP, because NOP (haha)"

Or something else that explains, but not that a change is justified
because there should not be many people doing things.

You know all about this because you have researched it, I don't. Share
more information.

> Signed-off-by: Elliott Mitchell <ehem+debian at m5p.com>
> ---
>  debian/rules | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/debian/rules b/debian/rules
> index 628ebe9c09..20eb5097ab 100755
> --- a/debian/rules
> +++ b/debian/rules
> @@ -135,6 +135,8 @@ dpkg_CPPFLAGS := $(shell $(dbmo) dpkg-buildflags --get CPPFLAGS)
>  dpkg_LDFLAGS  := $(shell $(dbmo) dpkg-buildflags --get LDFLAGS)
>  
>  make_args_common := \
> +	CC=$(DEB_HOST_MULTIARCH)-gcc \
> +	LD=$(DEB_HOST_MULTIARCH)-ld \
>  	XEN_COMPILE_ARCH=$(xen_arch_$(DEB_BUILD_ARCH))
>  
>  make_args_xen := $(make_args_common) \
> 

Hans



More information about the Pkg-xen-devel mailing list