aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/openslide/windows-dll-name.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/openslide/windows-dll-name.patch')
-rw-r--r--vcpkg/ports/openslide/windows-dll-name.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/vcpkg/ports/openslide/windows-dll-name.patch b/vcpkg/ports/openslide/windows-dll-name.patch
new file mode 100644
index 0000000..ea863a6
--- /dev/null
+++ b/vcpkg/ports/openslide/windows-dll-name.patch
@@ -0,0 +1,27 @@
+commit 6d80b9db41810eb316d81cd2149265b89f5dc35f
+Author: Benjamin Gilbert <bgilbert@cs.cmu.edu>
+Date: Mon Aug 4 21:32:06 2025 -0600
+
+ meson: use `lib` library prefix when building on Windows
+
+ Meson defaults to omitting the `lib` library prefix on Windows except when
+ building with MinGW, producing openslide-1.dll. OpenSlide Java, OpenSlide
+ Python, and other bindings assume the library is libopenslide-1.dll, since
+ that's what openslide-bin ships. Ensure we use that name.
+
+ Signed-off-by: Benjamin Gilbert <bgilbert@cs.cmu.edu>
+
+diff --git a/src/meson.build b/src/meson.build
+index 676e5feb3f56..821fc3b938fc 100644
+--- a/src/meson.build
++++ b/src/meson.build
+@@ -81,6 +81,9 @@ libopenslide = library(
+ openslide_sources,
+ version : soversion,
+ c_args : ['-D_OPENSLIDE_BUILDING_DLL', '-DG_LOG_DOMAIN="OpenSlide"'],
++ # Meson omits 'lib' by default on Windows except on MinGW. Maintain
++ # compatibility with the MinGW build, since it was here first.
++ name_prefix : host_machine.system() == 'windows' ? 'lib' : [],
+ gnu_symbol_visibility : visibility,
+ include_directories : config_h_include,
+ dependencies : [