You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-libs/cctbx/files/2010.03.29.2334-soname.patch

124 lines
5.1 KiB

diff --git a/cctbx_sources/ccp4io_adaptbx/SConscript b/cctbx_sources/ccp4io_adaptbx/SConscript
index 4ff2232..2ee3991 100644
--- a/cctbx_sources/ccp4io_adaptbx/SConscript
+++ b/cctbx_sources/ccp4io_adaptbx/SConscript
@@ -40,6 +40,7 @@ def replace_printf(file_name):
env = env_base.Clone(
SHLINKFLAGS=env_etc.shlinkflags)
+env.Append(SHLINKFLAGS=["-Wl,-soname,libccp4io.so.0.0"])
env.Append(CCFLAGS=env_etc.ccp4io_defines)
env.Append(SHCCFLAGS=env_etc.ccp4io_defines)
env_etc.include_registry.append(
diff --git a/cctbx_sources/cctbx/SConscript b/cctbx_sources/cctbx/SConscript
index 6ec7c93..7f2e788 100644
--- a/cctbx_sources/cctbx/SConscript
+++ b/cctbx_sources/cctbx/SConscript
@@ -15,6 +15,7 @@ env_etc.cctbx_common_includes = [
env = env_base.Clone(
SHLINKFLAGS=env_etc.shlinkflags)
+env.Append(SHLINKFLAGS=["-Wl,-soname,libcctbx.so.0.0"])
env_etc.include_registry.append(
env=env,
paths=env_etc.cctbx_common_includes)
diff --git a/cctbx_sources/iotbx/mtz/SConscript b/cctbx_sources/iotbx/mtz/SConscript
index c0a4bb0..d3c1e45 100644
--- a/cctbx_sources/iotbx/mtz/SConscript
+++ b/cctbx_sources/iotbx/mtz/SConscript
@@ -6,6 +6,7 @@ ccp4io_lib = getattr(env_etc, "ccp4io_lib", "cmtz")
env.Prepend(LIBS=["cctbx", ccp4io_lib]+env_etc.libm)
env.Append(CXXFLAGS=env_etc.ccp4io_defines)
env.Append(SHCXXFLAGS=env_etc.ccp4io_defines)
+env.Append(SHLINKFLAGS=["-Wl,-soname,libiotbx_mtz.so.0.0"])
env_etc.enable_more_warnings(env=env)
if (env_etc.static_libraries): builder = env.StaticLibrary
else: builder = env.SharedLibrary
diff --git a/cctbx_sources/iotbx/pdb/SConscript b/cctbx_sources/iotbx/pdb/SConscript
index c1415c8..9e1af8d 100644
--- a/cctbx_sources/iotbx/pdb/SConscript
+++ b/cctbx_sources/iotbx/pdb/SConscript
@@ -2,6 +2,7 @@ Import("env_base", "env_etc")
env = env_base.Clone(
SHLINKFLAGS=env_etc.shlinkflags)
+env.Append(SHLINKFLAGS=["-Wl,-soname,libiotbx_pdb.so.0.0"])
env_etc.enable_more_warnings(env=env)
env_etc.include_registry.append(
env=env,
diff --git a/cctbx_sources/mmtbx/masks/SConscript b/cctbx_sources/mmtbx/masks/SConscript
index e70ab3c..cf2f530 100755
--- a/cctbx_sources/mmtbx/masks/SConscript
+++ b/cctbx_sources/mmtbx/masks/SConscript
@@ -17,7 +17,9 @@ builder(
target="#lib/mmtbx_masks",
source=lib_sources)
-env = env.Clone()
+env = env.Clone(
+ SHLINKFLAGS=env_etc.shlinkflags)
+env.Append(SHLINKFLAGS=["-Wl,-soname,libmmtbx_masks.so.0.0"])
env.Prepend(LIBS=["mmtbx_masks", "iotbx_pdb", "cctbx_sgtbx_asu"])
env.Program( target = "tst_mask", source="tst_mask.cpp")
diff --git a/cctbx_sources/omptbx/SConscript b/cctbx_sources/omptbx/SConscript
index 43aac91..ce4b4f3 100644
--- a/cctbx_sources/omptbx/SConscript
+++ b/cctbx_sources/omptbx/SConscript
@@ -7,6 +7,7 @@ env_etc.omptbx_include = os.path.dirname(env_etc.omptbx_dist)
env = env_base.Clone(
SHLINKFLAGS=env_etc.shlinkflags)
+env.Append(SHLINKFLAGS=["-Wl,-soname,libomptbx.so.0.0"])
env_etc.include_registry.append(
env=env,
paths=[env_etc.omptbx_include])
diff --git a/cctbx_sources/rstbx/SConscript b/cctbx_sources/rstbx/SConscript
index 2213c2f..cae7542 100644
--- a/cctbx_sources/rstbx/SConscript
+++ b/cctbx_sources/rstbx/SConscript
@@ -15,6 +15,7 @@ env_etc.rstbx_common_includes = [
]
env = env_base.Clone(SHLINKFLAGS=env_etc.shlinkflags)
+env.Append(SHLINKFLAGS=["-Wl,-soname,librstbx.so.0.0"])
env.Append(LIBS=["cctbx"] + env_etc.libm)
env_etc.include_registry.append(
env=env,
diff --git a/cctbx_sources/scitbx/boost_python/SConscript b/cctbx_sources/scitbx/boost_python/SConscript
index 6f221d0..c4698d8 100644
--- a/cctbx_sources/scitbx/boost_python/SConscript
+++ b/cctbx_sources/scitbx/boost_python/SConscript
@@ -4,6 +4,7 @@ Import("env_scitbx_boost_python_ext")
env = env_base.Clone(
SHLINKFLAGS=env_etc.shlinkflags)
env_etc.enable_more_warnings(env=env)
+env.Append(SHLINKFLAGS=["-Wl,-soname,libscitbx_boost_python.so.0.0"])
env.Append(CXXFLAGS=env_etc.cxxflags_bpl_defines_base)
env.Append(SHCXXFLAGS=env_etc.cxxflags_bpl_defines_base)
env.Append(LIBS=["boost_python"])
diff --git a/cctbx_sources/scitbx/minpack/SConscript b/cctbx_sources/scitbx/minpack/SConscript
index 7c325cb..cc23a04 100644
--- a/cctbx_sources/scitbx/minpack/SConscript
+++ b/cctbx_sources/scitbx/minpack/SConscript
@@ -3,6 +3,7 @@ Import("env_base", "env_etc")
env = env_base.Clone(
SHLINKFLAGS=env_etc.shlinkflags)
env_etc.enable_more_warnings(env=env)
+env.Append(SHLINKFLAGS=["-Wl,-soname,libscitbx_minipack.so.0.0"])
env_etc.include_registry.append(
env=env,
paths=env_etc.scitbx_common_includes)
diff --git a/cctbx_sources/scitbx/slatec/SConscript b/cctbx_sources/scitbx/slatec/SConscript
index ca9b6da..9c79d47 100644
--- a/cctbx_sources/scitbx/slatec/SConscript
+++ b/cctbx_sources/scitbx/slatec/SConscript
@@ -3,6 +3,7 @@ Import("env_base", "env_etc")
env = env_base.Clone(
SHLINKFLAGS=env_etc.shlinkflags)
env_etc.enable_more_warnings(env=env)
+env.Append(SHLINKFLAGS=["-Wl,-soname,libscitbx_slatec.so.0.0"])
env.Append(LIBS=env_etc.libm)
if (env_etc.static_libraries): builder = env.StaticLibrary
else: builder = env.SharedLibrary