head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.6 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.4 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.2 pkgsrc-2025Q3-base:1.1; locks; strict; comment @# @; 1.1 date 2025.07.01.11.35.06; author adam; state Exp; branches; next ; commitid 8mg8iZjtPbvgi21G; desc @@ 1.1 log @spice-gtk: updated to 0.42 v0.42 - Fix compilation on win32 with EGL - spice-widget: fix hotspot position on Wayland/HiDPI - meson: Allow building on a Wayland-only environment - usb-backend: Fix devices not being enumerated - spicy: Add keyboard shortcuts for copy/paste sync - Require meson >= 0.56 @ text @$NetBSD$ Compiler option -export-symbols is not portable; doesn't work with Clang. --- src/meson.build.orig 2024-04-18 18:05:53.856125641 +0000 +++ src/meson.build @@@@ -185,10 +185,15 @@@@ spice_client_glib_syms = files('map-file spice_client_glib_syms_path = meson.current_source_dir() / 'map-file' spice_gtk_version_script = '-Wl,--version-script=@@0@@'.format(spice_client_glib_syms_path) spice_gtk_has_version_script = compiler.has_link_argument(spice_gtk_version_script) +spice_compiler_has_export_symbols = compiler.has_link_argument('-export-symbols') if not spice_gtk_has_version_script spice_client_glib_syms = files('spice-glib-sym-file') spice_client_glib_syms_path = meson.current_source_dir() / 'spice-glib-sym-file' + if spice_compiler_has_export_symbols spice_gtk_version_script = ['-export-symbols', spice_client_glib_syms_path] + else + spice_gtk_version_script = [] + endif endif # soversion @@@@ -376,7 +381,11 @@@@ if spice_gtk_has_gtk if not spice_gtk_has_version_script spice_client_gtk_syms = files('spice-gtk-sym-file') spice_client_gtk_syms_path = meson.current_source_dir() / 'spice-gtk-sym-file' + if spice_compiler_has_export_symbols spice_gtk_version_script = ['-export-symbols', spice_client_gtk_syms_path] + else + spice_gtk_version_script = [] + endif endif # soversion @