build: fixed install target for systems with rpath disabled
authorAndrew Tridgell <tridge@samba.org>
Tue, 30 Mar 2010 04:32:06 +0000 (15:32 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:18 +0000 (20:27 +1000)
buildtools/wafsamba/wafsamba.py

index 9be10bfdbb2f2d5b7d44e1cea8990315ce4c85a8..2f3120d6e9cefeef4929334e64170d98e48e8051 100644 (file)
@@ -195,16 +195,16 @@ def SAMBA_LIBRARY(bld, libname, source,
         if realname:
             install_name = realname
             install_link = None
-            inst_name    = libname + '.inst.so'
+            inst_name    = install_target + '.so'
         elif vnum:
             vnum_base = vnum.split('.')[0]
             install_name = 'lib%s.so.%s' % (bundled_name, vnum)
             install_link = 'lib%s.so.%s' % (bundled_name, vnum_base)
-            inst_name    = 'lib%s.inst.so' % bundled_name
+            inst_name    = 'lib%s.so' % install_target
         else:
             install_name = 'lib%s.so' % bundled_name
             install_link = None
-            inst_name    = 'lib%s.inst.so' % bundled_name
+            inst_name    = 'lib%s.so' % install_target
 
         bld.install_as(os.path.join(install_path, install_name), inst_name)
         if install_link: