Merge pull request #306960 from reckenrode/system_cmds-fix

darwin.system_cmds: fix build without CoreFoundation hook
This commit is contained in:
toonn 2024-05-01 19:45:36 +02:00 committed by GitHub
commit 473eaafe1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -88,6 +88,7 @@ install_man('accton/accton.8')
executable( executable(
'arch', 'arch',
build_by_default : sdk_version.version_compare('>=11'), build_by_default : sdk_version.version_compare('>=11'),
dependencies : [ core_foundation ],
install : sdk_version.version_compare('>=11'), install : sdk_version.version_compare('>=11'),
sources : 'arch/arch.c' sources : 'arch/arch.c'
) )
@ -145,7 +146,7 @@ install_man('chkpasswd/chkpasswd.8')
executable( executable(
'chpass', 'chpass',
dependencies : [ cfopen_directory, directory_service, open_directory ], dependencies : [ core_foundation, cfopen_directory, directory_service, open_directory ],
install : true, install : true,
sources : [ sources : [
'chpass/chpass.c', 'chpass/chpass.c',
@ -358,7 +359,7 @@ install_man(
executable( executable(
'nvram', 'nvram',
c_args : '-DTARGET_OS_BRIDGE=0', c_args : '-DTARGET_OS_BRIDGE=0',
dependencies : [ iokit, libc_private, xnu_private ], dependencies : [ core_foundation, iokit, libc_private, xnu_private ],
install : true, install : true,
sources : 'nvram/nvram.c' sources : 'nvram/nvram.c'
) )
@ -377,7 +378,7 @@ install_man('pagesize/pagesize.1')
executable( executable(
'passwd', 'passwd',
dependencies : [ cfopen_directory, directory_service, open_directory, pam ], dependencies : [ core_foundation, cfopen_directory, directory_service, open_directory, pam ],
install : true, install : true,
sources : [ sources : [
'passwd/file_passwd.c', 'passwd/file_passwd.c',
@ -521,7 +522,7 @@ executable(
'zlog', 'zlog',
build_by_default : sdk_version.version_compare('>=11'), build_by_default : sdk_version.version_compare('>=11'),
c_args : '-DKERN_NOT_FOUND=56', c_args : '-DKERN_NOT_FOUND=56',
dependencies : core_symbolication, dependencies : [ core_foundation, core_symbolication ],
install : sdk_version.version_compare('>=11'), install : sdk_version.version_compare('>=11'),
sources : [ sources : [
'zlog/SymbolicationHelper.c', 'zlog/SymbolicationHelper.c',