From: Stefan Jumarea Date: Thu, 27 Oct 2022 12:01:57 +0000 (+0300) Subject: Makefile.uk/misc: Always include the uname sources X-Git-Tag: RELEASE-0.11.0~7 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=af0786e9eabf52d2ab4646bb8a09add311fa0afa;p=unikraft%2Flibs%2Fmusl.git Makefile.uk/misc: Always include the uname sources When `LIB_POSIX_SYSINFO` is selected, the build fails when using musl with an undefined reference to `uname`. This commit removes the uname sources dependency of the selection of `LIB_POSIX_SYSINFO`. Signed-off-by: Stefan Jumarea Reviewed-by: Razvan Deaconescu Approved-by: Razvan Deaconescu Tested-by: Unikraft CI GitHub-Closes: #18 --- diff --git a/Makefile.uk.musl.misc b/Makefile.uk.musl.misc index a1f04ae..a693201 100644 --- a/Makefile.uk.musl.misc +++ b/Makefile.uk.musl.misc @@ -76,9 +76,7 @@ LIBMUSL_MISC_SRCS-y += $(LIBMUSL)/src/misc/setpriority.c LIBMUSL_MISC_SRCS-y += $(LIBMUSL)/src/misc/setrlimit.c #LIBMUSL_MISC_SRCS-y += $(LIBMUSL)/src/misc/syscall.c|misc LIBMUSL_MISC_SRCS-y += $(LIBMUSL)/src/misc/syslog.c -ifneq ($(CONFIG_LIBPOSIX_SYSINFO),y) LIBMUSL_MISC_SRCS-y += $(LIBMUSL)/src/misc/uname.c -endif #LIBMUSL_MISC_SRCS-y += $(LIBMUSL)/src/misc/wordexp.c $(eval $(call _libmusl_import_lib,misc,$(LIBMUSL_MISC_HDRS-y),$(LIBMUSL_MISC_SRCS-y)))