From b026cf89391a739ca498bfbfc062b2c76b9a4265 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 27 Jun 2024 12:04:24 +0200 Subject: [PATCH] (submit/fix-ftbs-solaris) 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 f8c060f08..44acba6ba 100644 --- a/os/meson.build +++ b/os/meson.build @@ -65,6 +65,8 @@ if host_machine.system() == 'sunos' os_c_args += '-D_XOPEN_SOURCE=1' 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')