summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-ckzg/python-ckzg-0001-Let-override-CC.patch
blob: c58089cc155cc709318906cfb00a6754f1375659 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Peter Lemenkov <lemenkov@gmail.com>
Date: Wed, 6 Nov 2024 16:35:23 +0300
Subject: [PATCH] Let override CC

Upstream-Status: Pending

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>

diff --git a/src/Makefile b/src/Makefile
index b733a11..c688005 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -79,7 +79,7 @@ ifeq ($(PLATFORM),Windows)
 	CFLAGS += -D_CRT_SECURE_NO_WARNINGS
 	CFLAGS += -Wno-missing-braces -Wno-format
 else
-	CC = clang
+	CC ?= clang
 	CFLAGS += -fPIC
 	CFLAGS += -Wmissing-braces -Wformat=2
 endif