diff -ru serf-1.3.9.orig/SConstruct serf-1.3.9/SConstruct --- serf-1.3.9.orig/SConstruct 2015-09-17 08:46:24.000000000 -0400 +++ serf-1.3.9/SConstruct 2016-12-18 17:28:42.000000000 -0500 @@ -216,9 +216,9 @@ # 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) + env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR+3, MINOR, 0) -LIBNAME = 'libserf-%d' % (MAJOR,) +LIBNAME = 'libserf-%d.0' % (MAJOR,) if sys.platform != 'win32': LIBNAMESTATIC = LIBNAME else: @@ -229,7 +229,7 @@ if sys.platform == 'darwin': # linkflags.append('-Wl,-install_name,@executable_path/%s.dylib' % (LIBNAME,)) - env.Append(LINKFLAGS=['-Wl,-install_name,%s/%s.dylib' % (thisdir, LIBNAME,)]) + env.Append(LINKFLAGS='-Wl,-install_name,%s/%s.dylib,-compatibility_version,%s,-current_version,%s' % (thisdir, LIBNAME, env['SHLIBVERSION'], env['SHLIBVERSION'],)) if sys.platform != 'win32': def CheckGnuCC(context):