[Pkg-xen-devel] [PATCH 14/19] debian/rules: Set CC/LD to enable cross-building

Hans van Kranenburg hans at knorrie.org
Fri Dec 4 21:43:46 GMT 2020


On 7/17/20 4:07 AM, Elliott Mitchell wrote:
> Always set $(CC) and $(LD) when building.  This has no effect on native
> builds, but is needed for cross-builds to use the right compiler.
> 
> Signed-off-by: Elliott Mitchell <ehem+debian at m5p.com>

Acked-by: Hans van Kranenburg <hans at knorrie.org>

Added to knorrie/sid, thanks.
Hans

> ---
>  debian/rules | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/debian/rules b/debian/rules
> index 95f3cc4311..dffdef9a9d 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) \
> 




More information about the Pkg-xen-devel mailing list