blob: 498a024830c5c0167341f52eedbb231bc97f6347 [file] [log] [blame]
Patrick Williams03907ee2022-05-01 06:28:52 -05001From f6162ced588c17c1141a8f6154475a299a2ebc0d Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Tue, 26 Apr 2022 22:35:35 +0200
4Subject: [PATCH] Makefile: quote CC
5
6It can contain command line options, and therefore spaces, and so
7needs to be quoted.
8
9Upstream-Status: Submitted [https://github.com/ColinIanKing/stress-ng/pull/188]
10Signed-off-by: Alexander Kanavin <alex@linutronix.de>
11---
12 Makefile | 2 +-
13 Makefile.config | 2 +-
14 2 files changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/Makefile b/Makefile
17index 501093f5..8a454edd 100644
18--- a/Makefile
19+++ b/Makefile
20@@ -432,7 +432,7 @@ stress-ng: $(OBJS)
21 $(V)sync
22
23 config.h:
24- $(MAKE) CC=$(CC) STATIC=$(STATIC) -f Makefile.config
25+ $(MAKE) CC="$(CC)" STATIC=$(STATIC) -f Makefile.config
26
27 .PHONY:
28 makeconfig: config.h
29diff --git a/Makefile.config b/Makefile.config
30index b76d0903..f03f7a85 100644
31--- a/Makefile.config
32+++ b/Makefile.config
33@@ -69,7 +69,7 @@ else
34 endif
35
36
37-MAKE_OPTS=CC=$(CC) -f Makefile.config --no-print-directory
38+MAKE_OPTS=CC="$(CC)" -f Makefile.config --no-print-directory
39
40 comma = ,
41