From: Elliott Mitchell Date: Fri, 17 Jul 2020 02:07:31 +0000 (-0700) Subject: debian/rules: Set CC/LD to enable cross-building X-Git-Tag: archive/raspbian/4.14.1+11-gb0b734a8b3-1+rpi1^2~59 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e895047c966c0e6e2ac98ac2060f0c341ab4f4a2;p=xen.git 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 [Hans van Kranenburg] Note: instead of using DEB_HOST_MULTIARCH, we have to use DEB_HOST_GNU_TYPE for CC. This commit is the 'second take' of commit 900c799589 Acked-by: Hans van Kranenburg --- diff --git a/debian/rules b/debian/rules index a0e269c36f..7a54747ed8 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_GNU_TYPE)-gcc \ + LD=$(DEB_HOST_GNU_TYPE)-ld \ XEN_COMPILE_ARCH=$(xen_arch_$(DEB_BUILD_ARCH)) \ V=1