db352f7ef4
We have added POSIX signals to KirkOS It is very much experimental Alongside, we have PCI support fully, and we have imported sbase coreutils, I'm not too sure if all of them work, likely not, but a good few should be okay. Signed-off-by: kaguya <kaguya3311@national.shitposting.agency>
105 lines
2.5 KiB
Meson
105 lines
2.5 KiB
Meson
sysdep_supported_options = {
|
|
'posix': true,
|
|
'linux': true,
|
|
'glibc': true,
|
|
'bsd': true,
|
|
}
|
|
|
|
if not no_headers
|
|
install_headers(
|
|
'include/abi-bits/auxv.h',
|
|
'include/abi-bits/blkcnt_t.h',
|
|
'include/abi-bits/blksize_t.h',
|
|
'include/abi-bits/clockid_t.h',
|
|
'include/abi-bits/dev_t.h',
|
|
'include/abi-bits/errno.h',
|
|
'include/abi-bits/fcntl.h',
|
|
'include/abi-bits/gid_t.h',
|
|
'include/abi-bits/ino_t.h',
|
|
'include/abi-bits/limits.h',
|
|
'include/abi-bits/mode_t.h',
|
|
'include/abi-bits/nlink_t.h',
|
|
'include/abi-bits/pid_t.h',
|
|
'include/abi-bits/seek-whence.h',
|
|
'include/abi-bits/signal.h',
|
|
'include/abi-bits/stat.h',
|
|
'include/abi-bits/uid_t.h',
|
|
'include/abi-bits/vm-flags.h',
|
|
'include/abi-bits/wait.h',
|
|
'include/abi-bits/riscv-hwprobe.h',
|
|
'include/abi-bits/sigevent.h',
|
|
'include/abi-bits/sigval.h',
|
|
'include/abi-bits/sa_family_t.h',
|
|
'include/abi-bits/sockaddr_storage.h',
|
|
'include/abi-bits/sig-limits.h',
|
|
'include/abi-bits/suseconds_t.h',
|
|
'include/abi-bits/access.h',
|
|
'include/abi-bits/socklen_t.h',
|
|
'include/abi-bits/socket.h',
|
|
'include/abi-bits/poll.h',
|
|
'include/abi-bits/resource.h',
|
|
'include/abi-bits/in.h',
|
|
'include/abi-bits/rlim_t.h',
|
|
'include/abi-bits/utsname.h',
|
|
'include/abi-bits/fd_set.h',
|
|
'include/abi-bits/sem.h',
|
|
'include/abi-bits/time.h',
|
|
'include/abi-bits/ipc.h',
|
|
'include/abi-bits/statvfs.h',
|
|
'include/abi-bits/fsblkcnt_t.h',
|
|
'include/abi-bits/fsfilcnt_t.h',
|
|
'include/abi-bits/shm.h',
|
|
'include/abi-bits/termios.h',
|
|
'include/abi-bits/msg.h',
|
|
'include/abi-bits/mqueue.h',
|
|
'include/abi-bits/utmp-defines.h',
|
|
'include/abi-bits/utmpx.h',
|
|
'include/abi-bits/statx.h',
|
|
'include/abi-bits/ioctls.h',
|
|
subdir: 'abi-bits',
|
|
follow_symlinks: true
|
|
)
|
|
endif
|
|
|
|
if not headers_only
|
|
crtstuff = ['crt0']
|
|
if host_machine.cpu_family() in ['x86_64', 'aarch64', 'riscv64']
|
|
crtstuff += [
|
|
'crt1',
|
|
'crti',
|
|
'crtn'
|
|
]
|
|
endif
|
|
foreach crtthing : crtstuff
|
|
crtf = crtthing + '.S'
|
|
crt_src = files(host_machine.cpu_family() / 'crt-src' / crtf)
|
|
crt = custom_target(
|
|
crtthing,
|
|
build_by_default: true,
|
|
command: c_compiler.cmd_array() + ['-c', '-o', '@OUTPUT@', '@INPUT@'],
|
|
input: crt_src,
|
|
output: crtthing + '.o',
|
|
install: true,
|
|
install_dir: get_option('libdir')
|
|
)
|
|
endforeach
|
|
|
|
endif
|
|
|
|
rtld_dso_sources += files(
|
|
'sysdeps.cpp',
|
|
'syscall.cpp',
|
|
'dso.c',
|
|
)
|
|
rtld_include_dirs += include_directories('include')
|
|
|
|
libc_sources += files(
|
|
'entry.cpp',
|
|
'sysdeps.cpp',
|
|
'syscall.cpp',
|
|
'dso.c',
|
|
'generic/thread.cpp',
|
|
'generic/thread.S',
|
|
)
|
|
libc_include_dirs += include_directories('include')
|