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>
Mon, 6 Jan 2025 18:20:31 +0000 (21:20 +0300)
commita6f4d641a5fb59c89dcdeba0696fe2010babffb5
tree8c22dde09882799c0116022f2e7540425801196e
parentc09b2efa3427cd5137c8a6731f2de7fa97fc95bc
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