void-packages/srcpkgs/klibc/patches/klibc-kbuild-include-provided-kcflags-in-klibccflags.patch
Đoàn Trần Công Danh d6e0069be4 New package: klibc-2.0.10
2022-11-23 22:32:13 +07:00

19 lines
530 B
Diff

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 =