summaryrefslogtreecommitdiffstats
path: root/debian/patches/klibc-kbuild-include-provided-kcflags-in-klibccflags.patch
blob: adf5a8bcc00878d193e45a1f04145cd955511fc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From: Ben Hutchings <benh@debian.org>
Date: Fri, 31 Dec 2021 14:59:23 +0100
Subject: [klibc] Kbuild: Include provided KCFLAGS in KLIBCCFLAGS

If KCFLAGS is provided through the environment or make variables, use
it in addition to all the options we need.

---
--- a/scripts/Kbuild.klibc
+++ b/scripts/Kbuild.klibc
@@ -78,7 +78,7 @@ KLIBCOPTFLAGS     :=
 KLIBCSHAREDFLAGS  :=
 KLIBCBITSIZE      :=
 KLIBCLDFLAGS      :=
-KLIBCCFLAGS       :=
+KLIBCCFLAGS       := $(KCFLAGS)
 
 # Defaults for arch to override
 KLIBCARCHINCFLAGS =