build: Fix libc/pwd CMakeLists.txt

This commit fixes erronous assignment of lib_pwd_globals.c
previously guarded by CONFIG_LIBC_PASSWD_FILE. Original
Make.defs file has this in CSRCS scope.

Signed-off-by: Daniel Jasinski <jasinskidaniel95szcz@gmail.com>
This commit is contained in:
Daniel Jasinski 2024-08-06 14:38:38 -04:00 committed by archer
parent 2eb26d04f4
commit a09867df8c

View file

@ -17,10 +17,12 @@
# the License.
#
# ##############################################################################
set(SRCS lib_getpwnam.c lib_getpwnamr.c lib_getpwuid.c lib_getpwuidr.c)
set(SRCS lib_getpwnam.c lib_getpwnamr.c lib_getpwuid.c lib_getpwuidr.c
lib_pwd_globals.c)
if(CONFIG_LIBC_PASSWD_FILE)
list(APPEND SRCS lib_find_pwdfile.c lib_pwd_globals.c)
list(APPEND SRCS lib_find_pwdfile.c)
else()
list(APPEND SRCS lib_getpwbuf.c lib_getpwbufr.c)
endif()