waf: the libXX.inst.so file also depends on the vscript
authorAndrew Tridgell <tridge@samba.org>
Fri, 10 Dec 2010 06:59:34 +0000 (17:59 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 10 Dec 2010 08:30:46 +0000 (09:30 +0100)
this fixes a problem with installed libraries not relinking after a
git version change

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Dec 10 09:30:46 CET 2010 on sn-devel-104

buildtools/wafsamba/wafsamba.py

index fb685313538138ad1191a23964a7deb40b8c1ba5..3cb97c07236a23efc4cdcd24d03cd59bb3b8d4bc 100644 (file)
@@ -215,6 +215,10 @@ def SAMBA_LIBRARY(bld, libname, source,
             ldflags.append("-Wl,--version-script=%s/%s" % (bld.path.abspath(bld.env), vscript))
             fullname = bld.env.shlib_PATTERN % bundled_name
             bld.add_manual_dependency(bld.path.find_or_declare(fullname), bld.path.find_or_declare(vscript))
+            if Options.is_install:
+                # also make the .inst file depend on the vscript
+                instname = bld.env.shlib_PATTERN % (bundled_name + '.inst')
+                bld.add_manual_dependency(bld.path.find_or_declare(instname), bld.path.find_or_declare(vscript))
 
     bld.SET_BUILD_GROUP(group)
     t = bld(