summaryrefslogtreecommitdiffstats
path: root/debian/patches/klibc-kbuild-include-provided-kcflags-in-klibccflags.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:06:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:06:05 +0000
commit1aa22fd5afd692a2411ab2ffd42bdd96db3e2b9f (patch)
treeccc43985c0c11bc84e775e54f4aab6b6545bcf7e /debian/patches/klibc-kbuild-include-provided-kcflags-in-klibccflags.patch
parentAdding upstream version 2.0.13. (diff)
downloadklibc-debian.tar.xz
klibc-debian.zip
Adding debian version 2.0.13-4.debian/2.0.13-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/klibc-kbuild-include-provided-kcflags-in-klibccflags.patch')
-rw-r--r--debian/patches/klibc-kbuild-include-provided-kcflags-in-klibccflags.patch19
1 files changed, 19 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 =