[klibc] Kbuild: Include provided KCFLAGS in KLIBCCFLAGS
authorBen Hutchings <benh@debian.org>
Fri, 31 Dec 2021 13:59:23 +0000 (14:59 +0100)
committerBen Hutchings <benh@debian.org>
Sat, 1 Jan 2022 15:55:44 +0000 (15:55 +0000)
If KCFLAGS is provided through the environment or make variables, use
it in addition to all the options we need.

Gbp-Pq: Name klibc-kbuild-include-provided-kcflags-in-klibccflags.patch

scripts/Kbuild.klibc

index e88bc003d73e55e406ef0ef872967f50adab60e3..43a18f824d18d08736ec12db91190607db9a87a5 100644 (file)
@@ -78,7 +78,7 @@ KLIBCWARNFLAGS    := -W -Wall -Wno-sign-compare -Wno-unused-parameter
 KLIBCSHAREDFLAGS  :=
 KLIBCBITSIZE      :=
 KLIBCLDFLAGS      :=
-KLIBCCFLAGS       :=
+KLIBCCFLAGS       := $(KCFLAGS)
 
 # Defaults for arch to override
 KLIBCARCHINCFLAGS =