]> xenbits.xensource.com Git - unikraft/libs/musl.git/commitdiff
Makefile.uk/misc: Always include the uname sources
authorStefan Jumarea <stefanjumarea02@gmail.com>
Thu, 27 Oct 2022 12:01:57 +0000 (15:01 +0300)
committerUnikraft <monkey@unikraft.io>
Thu, 24 Nov 2022 19:59:26 +0000 (19:59 +0000)
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 <stefanjumarea02@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: #18

Makefile.uk.musl.misc

index a1f04ae0cb6e8e33fe19360782d05930bbd059a8..a6932015c9661ef13c0a2f658d22345b4a3a5ea8 100644 (file)
@@ -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)))