Improve CHECK_LIB interaction with CHECK_PKG
authorEarl Chew <earl_chew@yahoo.com>
Sun, 17 Dec 2023 01:47:09 +0000 (17:47 -0800)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 10 May 2024 00:26:35 +0000 (00:26 +0000)
commit0c983bd0095d4fb20ef8b42f5efb740393073862
treed91466318b543e71b7de63a5df75da8906c9b834
parent363c33185779141fdfbda695997d548939a0251f
Improve CHECK_LIB interaction with CHECK_PKG

When checking for shared libraries, only name the target library
if it was not previously discoverd by pkg-config --libs and now
available from uselib_store. This avoids using both sources of
information which results in the library being named twice on
the command line.

Once the library is confirmed by CHECK_LIB, append the library if
not already present, to avoid dropping libraries that were
previously discovered by CHECK_PKG.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15623

Signed-off-by: Earl Chew <earl_chew@yahoo.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
buildtools/wafsamba/samba_autoconf.py