specify some deps on private libs actually used directly
authorMichael Tokarev <mjt@tls.msk.ru>
Thu, 19 May 2022 17:37:21 +0000 (20:37 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 1 Dec 2024 19:28:05 +0000 (22:28 +0300)
commit627b2d0ea38d4b94ca9493a8ade62c050decc408
tree50479767df8bdfd01d612f61cb31cbaa6cfa4540
parenta1c949b0f3a071a652910ddcf2a14e18fe24d4e0
specify some deps on private libs actually used directly

Updated: Thu, 28 Nov 2024 11:59:58 +0300
Forwarded: https://gitlab.com/samba-team/samba/-/merge_requests/3872

Lots of samba libraries has incomplete dependencies listed
in wscript files.  This usually is not a problem since the
link line includes dependencies of their dependencies of
their dependencies, and somewhere down that line all immediate
dependencies which are missing are actually present.  But
sometimes this becomes a problem when a library does not
declare direct dependency on at least one private library
which it actually uses: in case no private library is
listed as direct dependency, private library directory is
not put into RUNPATH of the resulting binary, so the binary
can not find its own dependencies.

Fix a few such places, including some libraries which are
a part of public abi (libsmbldap, libndr).

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Gbp-Pq: Name add-missing-libs-deps.diff
lib/param/wscript_build
lib/util/wscript_build
librpc/wscript_build
source3/wscript_build
source4/dsdb/samdb/ldb_modules/wscript_build_server
source4/param/wscript_build