Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 1 | From f6162ced588c17c1141a8f6154475a299a2ebc0d Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex@linutronix.de> |
| 3 | Date: Tue, 26 Apr 2022 22:35:35 +0200 |
| 4 | Subject: [PATCH] Makefile: quote CC |
| 5 | |
| 6 | It can contain command line options, and therefore spaces, and so |
| 7 | needs to be quoted. |
| 8 | |
| 9 | Upstream-Status: Submitted [https://github.com/ColinIanKing/stress-ng/pull/188] |
| 10 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> |
| 11 | --- |
| 12 | Makefile | 2 +- |
| 13 | Makefile.config | 2 +- |
| 14 | 2 files changed, 2 insertions(+), 2 deletions(-) |
| 15 | |
| 16 | diff --git a/Makefile b/Makefile |
| 17 | index 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 |
| 29 | diff --git a/Makefile.config b/Makefile.config |
| 30 | index 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 | |