summaryrefslogtreecommitdiffstats
path: root/meta/recipes-rt/rt-tests/files/0001-Makefile-Allow-for-CC-and-AR-to-be-overridden.patch
blob: e9967767a0f050759cf1f647fb9af34477c2fddc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 174fd202f2c85e43261139d71ad18908cc29b586 Mon Sep 17 00:00:00 2001
From: Randy Witt <randy.e.witt@intel.com>
Date: Fri, 16 Oct 2020 16:54:30 -0700
Subject: [PATCH] Makefile: Allow for CC and AR to be overridden

The Makefile previously allowed for this but it was removed upstream in
commit 7763cf316d7896fa05b816a46998f0827ab6e6eb.

Signed-off-by: Randy Witt <randy.e.witt@intel.com>

Upstream-Status: Inappropriate [other]

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 4df61ec..a229986 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 VERSION = 2.5
-CC = $(CROSS_COMPILE)gcc
-AR = $(CROSS_COMPILE)ar
+CC ?= $(CROSS_COMPILE)gcc
+AR ?= $(CROSS_COMPILE)ar
 
 OBJDIR = bld