@@ -860,8 +860,9 @@ class libsockets(MuslInternalLibrary, MTLibrary):
860
860
cflags = ['-Os' , '-fno-builtin' , '-Wno-shift-op-parentheses' ]
861
861
862
862
def get_files (self ):
863
- network_dir = shared .path_from_root ('system' , 'lib' , 'libc' , 'musl' , 'src' , 'network' )
864
- return [os .path .join (network_dir , x ) for x in LIBC_SOCKETS ]
863
+ return files_in_path (
864
+ path_components = ['system' , 'lib' , 'libc' , 'musl' , 'src' , 'network' ],
865
+ filenames = LIBC_SOCKETS )
865
866
866
867
867
868
class libsockets_proxy (MuslInternalLibrary , MTLibrary ):
@@ -870,9 +871,11 @@ class libsockets_proxy(MuslInternalLibrary, MTLibrary):
870
871
cflags = ['-Os' ]
871
872
872
873
def get_files (self ):
873
- network_dir = shared .path_from_root ('system' , 'lib' , 'libc' , 'musl' , 'src' , 'network' )
874
- return [os .path .join (network_dir , x ) for x in LIBC_SOCKETS_PROXY ] + \
875
- [shared .path_from_root ('system' , 'lib' , 'websocket' , 'websocket_to_posix_socket.c' )]
874
+ return files_in_path (
875
+ path_components = ['system' , 'lib' , 'libc' , 'musl' , 'src' , 'network' ],
876
+ filenames = LIBC_SOCKETS_PROXY ) + files_in_path (
877
+ path_components = ['system' , 'lib' , 'websocket' ],
878
+ filenames = ['websocket_to_posix_socket.c' ])
876
879
877
880
878
881
class crt1 (MuslInternalLibrary ):
0 commit comments