Blame SOURCES/0048-Make-CC_FOR_BUILD-and-CCLD_FOR_BUILD-override-HOSTCC.patch

a43681
From 9fa2e902ad0581b57e6e387ec629a70b16a26095 Mon Sep 17 00:00:00 2001
a43681
From: Peter Jones <pjones@redhat.com>
a43681
Date: Thu, 10 Oct 2019 13:52:46 -0400
a43681
Subject: [PATCH 48/63] Make CC_FOR_BUILD and CCLD_FOR_BUILD override
a43681
 HOSTCC/HOSTCCLD
a43681
a43681
---
a43681
 src/include/deprecated.mk | 10 ++++++++++
a43681
 1 file changed, 10 insertions(+)
a43681
a43681
diff --git a/src/include/deprecated.mk b/src/include/deprecated.mk
a43681
index a31b080dbf6..00abc8c8226 100644
a43681
--- a/src/include/deprecated.mk
a43681
+++ b/src/include/deprecated.mk
a43681
@@ -38,5 +38,15 @@ ifneq ($(origin bindir),undefined)
a43681
     override BINDIR = $(bindir)
a43681
   endif
a43681
 endif
a43681
+ifneq ($(origin CC_FOR_BUILD),undefined)
a43681
+  ifeq ($(origin HOSTCC),file)
a43681
+    override HOSTCC = $(CC_FOR_BUILD)
a43681
+  endif
a43681
+endif
a43681
+ifneq ($(origin CCLD_FOR_BUILD),undefined)
a43681
+  ifeq ($(origin HOSTCCLD),file)
a43681
+    override HOSTCCLD = $(CCLD_FOR_BUILD)
a43681
+  endif
a43681
+endif
a43681
 
a43681
 # vim:ft=make
a43681
-- 
a43681
2.26.2
a43681