From d5df5e9c322c54be6f43b0dc7b6801948da78634 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 18 Sep 2024 13:33:16 -0700 Subject: [PATCH] meson: Avoid passing GNU linker arguments to Solaris linker Signed-off-by: Alan Coopersmith --- src/modules/meson.build | 2 +- src/pulse/meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/meson.build b/src/modules/meson.build index 05267c93a..765a32358 100644 --- a/src/modules/meson.build +++ b/src/modules/meson.build @@ -305,7 +305,7 @@ all_modules += [ # FIXME: meson doesn't support multiple RPATH arguments currently rpath_dirs = join_paths(privlibdir) + ':' + join_paths(modlibexecdir) -if host_machine.system() != 'windows' and host_machine.system() != 'darwin' +if host_machine.system() != 'windows' and host_machine.system() != 'darwin' and host_machine.system() != 'sunos' no_undefined_args = ['-Wl,--no-undefined'] else no_undefined_args = [] diff --git a/src/pulse/meson.build b/src/pulse/meson.build index c132630f3..953504e06 100644 --- a/src/pulse/meson.build +++ b/src/pulse/meson.build @@ -70,7 +70,7 @@ if glib_dep.found() libpulse_headers += 'glib-mainloop.h' endif -if host_machine.system() != 'windows' and host_machine.system() != 'darwin' +if host_machine.system() != 'windows' and host_machine.system() != 'darwin' and host_machine.system() != 'sunos' run_target('update-map-file', command : [ join_paths(meson.source_root(), 'scripts/generate-map-file.sh'), 'map-file', 'libpulse.def', [ libpulse_headers, 'simple.h', join_paths(meson.build_root(), 'src', 'pulse', 'version.h') ] ])