From 900c79958963e72192fbf3654b38a5c7f8353176 Mon Sep 17 00:00:00 2001 From: Elliott Mitchell Date: Thu, 16 Jul 2020 19:07:31 -0700 Subject: [PATCH] debian/rules: Set CC/LD to enable cross-building 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 Acked-by: Hans van Kranenburg --- debian/rules | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/rules b/debian/rules index b21c9e6948..05e3176432 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) \ -- 2.30.2