From 00eb674ef1fb64cd663e4d02dba157d04f77ca1b Mon Sep 17 00:00:00 2001 From: Stefan Jumarea Date: Sat, 29 Oct 2022 10:47:51 +0300 Subject: [PATCH] Makefile.uk: Add support headers for Musl When building with Musl, we need the headers located in the `include/support/musl` directory of `libcxx` origin source code. Without adding the headers in the include path, the build fails with "xlocale.h not found". Signed-off-by: Stefan Jumarea Reviewed-by: Maria Sfiraiala Reviewed-by: Razvan Deaconescu Approved-by: Razvan Deaconescu Tested-by: Unikraft CI GitHub-Closes: #10 --- Makefile.uk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile.uk b/Makefile.uk index b8a5420..e185a60 100644 --- a/Makefile.uk +++ b/Makefile.uk @@ -86,6 +86,11 @@ CXXINCLUDES-$(CONFIG_LIBCXX) += -I$(LIBCXX_SRC)/func CXXINCLUDES-$(CONFIG_LIBCXX) += -I$(LIBCXX_SRC)/include CXXINCLUDES-$(CONFIG_LIBCXX) += -I$(LIBCXX_SRC)/utils +ifeq ($(CONFIG_LIBMUSL),y) +CINCLUDES-$(CONFIG_LIBCXX) += -I$(LIBCXX_SRC)/include/support/musl +CXXINCLUDES-$(CONFIG_LIBCXX) += -I$(LIBCXX_SRC)/include/support/musl +endif + ################################################################################ # Global flags ################################################################################ -- 2.39.5