summaryrefslogtreecommitdiff
blob: 2c0efcabeb1395222c96c13ce39bb811748f23f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
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