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 <stefanjumarea02@gmail.com>
Reviewed-by: Maria Sfiraiala <maria.sfiraiala@gmail.com>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #10
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
################################################################################