build: cope with realname for install of non-python libs
authorAndrew Tridgell <tridge@samba.org>
Mon, 26 Apr 2010 09:04:33 +0000 (19:04 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 26 Apr 2010 09:06:06 +0000 (19:06 +1000)
this fixes the install of mit_samba.so

buildtools/wafsamba/samba_install.py
buildtools/wafsamba/wafsamba.py

index e2db589ff0f764a4d80cc1b349bf18022d0e7c97..55aab26a503fa7e2953223958a80eb19ad17089d 100644 (file)
@@ -87,7 +87,10 @@ def install_library(self):
     if self.samba_realname:
         install_name = self.samba_realname
         install_link = None
-        inst_name    = t.target + '.so'
+        if getattr(self, 'samba_type', None) == 'PYTHON':
+            inst_name    = '%s.so' % t.target
+        else:
+            inst_name    = 'lib%s.so' % t.target
     elif self.vnum:
         vnum_base    = self.vnum.split('.')[0]
         install_name = 'lib%s.so.%s' % (self.target, self.vnum)
index 36f8777226d362c36752938bca6d8663cd9d9045..6d6416b79805c163dc72ef9a3fb14984f6d06168 100644 (file)
@@ -161,7 +161,7 @@ def SAMBA_LIBRARY(bld, libname, source,
     deps = TO_LIST(deps)
     deps.append(obj_target)
 
-    if target_type == 'PYTHON':
+    if target_type == 'PYTHON' or realname:
         bundled_name = libname
     else:
         bundled_name = BUNDLED_NAME(bld, libname, bundled_extension)
@@ -197,6 +197,9 @@ def SAMBA_LIBRARY(bld, libname, source,
         abi_match       = abi_match
         )
 
+    if realname and not link_name:
+        link_name = 'shared/%s' % realname
+
     if link_name:
         t.link_name = link_name