MSYS2-packages/serf/05-disable-SHLIBVERSION.patch
Christoph Reiter 57f40bfb5d serf: rebuild and adjust shared lib name
With newer scons we otherwise get "liblib" prefixes.
It's not clear if that is a msys specific scons issue, or if
this has changed in scons.

It looks like trunk serf has updated all this code, so maybe it
is fixed there, we'll see.
2025-04-25 16:08:16 +02:00

18 lines
724 B
Diff

diff -durN serf-1.3.9.orig/SConstruct serf-1.3.9/SConstruct
--- serf-1.3.9.orig/SConstruct 2017-05-20 12:39:02.859375000 +0800
+++ serf-1.3.9/SConstruct 2017-05-20 12:41:00.968750000 +0800
@@ -219,10 +219,10 @@
# Unfortunately we can't set the .dylib compatibility_version option separately
# from current_version, so don't use the PATCH level to avoid that build and
# runtime patch levels have to be identical.
-if sys.platform != 'sunos5':
- env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
+#if sys.platform != 'sunos5':
+# env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
-LIBNAME = 'libserf-%d' % (MAJOR,)
+LIBNAME = 'serf-%d-0' % (MAJOR,)
if sys.platform != 'win32':
LIBNAMESTATIC = LIBNAME
else: