summaryrefslogtreecommitdiffstats
path: root/debian/patches
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/klibc-kbuild-include-provided-kcflags-in-klibccflags.patch19
-rw-r--r--debian/patches/series1
2 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/klibc-kbuild-include-provided-kcflags-in-klibccflags.patch b/debian/patches/klibc-kbuild-include-provided-kcflags-in-klibccflags.patch
new file mode 100644
index 0000000..adf5a8b
--- /dev/null
+++ b/debian/patches/klibc-kbuild-include-provided-kcflags-in-klibccflags.patch
@@ -0,0 +1,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 =
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..930c3b0
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+klibc-kbuild-include-provided-kcflags-in-klibccflags.patch