build: get the SONAME right for installed libraries
authorAndrew Tridgell <tridge@samba.org>
Sun, 23 May 2010 15:55:48 +0000 (17:55 +0200)
committerAndrew Tridgell <tridge@samba.org>
Sun, 23 May 2010 20:11:57 +0000 (22:11 +0200)
buildtools/wafsamba/samba_install.py

index 63dab1628ca78372bd3cf38b18ce78906d395628..4e968bf97cc35928b31268428d78e8cc671900e3 100644 (file)
@@ -105,6 +105,10 @@ def install_library(self):
         install_link = None
         inst_name    = 'lib%s.so' % t.target
 
+    if t.env.SONAME_ST and install_link:
+        t.env.append_value('LINKFLAGS', t.env.SONAME_ST % install_link)
+        t.env.SONAME_ST = ''
+
     # tell waf to install the library
     bld.install_as(os.path.join(install_path, install_name),
                    os.path.join(self.path.abspath(bld.env), inst_name))