From 5c8ebb457a4e846a75a664e11922da05c700bb85 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 27 Jun 2024 12:04:24 +0200 Subject: [PATCH] os: fix link failure on Illumos On SunOS, the BSD socket API as well as hostname lookups isn't implemented in libc, but separate libraries. We need to link them explicitly. Signed-off-by: Enrico Weigelt, metux IT consult --- os/meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/os/meson.build b/os/meson.build index 8ae62fbea9..f36da378a9 100644 --- a/os/meson.build +++ b/os/meson.build @@ -65,6 +65,8 @@ if host_machine.system() == 'sunos' os_c_args += '-D_XOPEN_SOURCE=700' os_c_args += '-D_XOPEN_SOURCE_EXTENDED=1' os_c_args += '-D__EXTENSIONS__' + os_dep += cc.find_library('socket') + os_dep += cc.find_library('nsl') endif if get_option('xres')