ldb: Remove "private_library" variable with just one user
authorAndrew Bartlett <abartlet@samba.org>
Mon, 12 Feb 2024 02:26:14 +0000 (15:26 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 1 Mar 2024 02:41:37 +0000 (02:41 +0000)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/ldb/wscript

index dc5fd86ca3a42520229ccf91e49e908910a477de..29ddf009d6b8ca1fdb83af6e08656a1ea13dd30a 100644 (file)
@@ -88,8 +88,6 @@ def build(bld):
     if not 'LDB_PACKAGE_VERSION' in bld.env:
         bld.env.LDB_PACKAGE_VERSION = LDB_VERSION
 
-    private_library = not bld.env.ldb_is_public_library
-
     # we're not currently linking against the ldap libs, but ldb.pc.in
     # has @LDAP_LIBS@
     bld.env.LDAP_LIBS = ''
@@ -177,7 +175,7 @@ def build(bld):
                             dep_vars=['LDB_VERSION'],
                             target='include/ldb_version.h',
                             public_headers='include/ldb_version.h',
-                            public_headers_install=not private_library)
+                            public_headers_install=not bld.env.ldb_is_public_library)
     t.env.LDB_VERSION = LDB_VERSION
 
     bld.SAMBA_MODULE('ldb_asq',