From ce32f26647391df0e088b8850f5afc1120190a72 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 28 Dec 2015 18:57:26 +0000 Subject: [PATCH] ldb: Only set public headers field when installing as a public library. Signed-Off-By: Jelmer Vernooij Reviewed-By: Andrew Bartlett Reviewed-By: Stefan Metzmacher --- lib/ldb/wscript | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/ldb/wscript b/lib/ldb/wscript index 6ff0c7c5349..b7dd4aa6d30 100755 --- a/lib/ldb/wscript +++ b/lib/ldb/wscript @@ -127,7 +127,7 @@ def build(bld): bld.SAMBA_LIBRARY(name, deps='ldb', source='pyldb_util.c', - public_headers='pyldb.h', + public_headers=('' if private_library else 'pyldb.h'), public_headers_install=not private_library, vnum=VERSION, private_library=private_library, @@ -159,12 +159,14 @@ def build(bld): abi_match = '!ldb_*module_ops !ldb_*backend_ops ldb_*' + ldb_headers = ('include/ldb.h include/ldb_errors.h ' + 'include/ldb_module.h include/ldb_handlers.h') + bld.SAMBA_LIBRARY('ldb', COMMON_SRC + ' ' + LDB_MAP_SRC, deps='tevent LIBLDB_MAIN replace', includes='include', - public_headers='include/ldb.h include/ldb_errors.h '\ - 'include/ldb_module.h include/ldb_handlers.h', + public_headers=('' if private_library else ldb_headers), public_headers_install=not private_library, pc_files='ldb.pc', vnum=VERSION, -- 2.34.1