From: Stefan Jumarea Date: Sat, 29 Oct 2022 07:47:51 +0000 (+0300) Subject: Makefile.uk: Add support headers for Musl X-Git-Tag: RELEASE-0.11.0~4 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=00eb674ef1fb64cd663e4d02dba157d04f77ca1b;p=unikraft%2Flibs%2Flibcxx.git 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 --- 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 ################################################################################