wafsamba: Only install .pc files if libraries are public.
[rusty/samba.git] / buildtools / wafsamba / wafsamba.py
index 544b491a701bf6a204945efbff1354300a0a4597..338bc3d48b35375c38fb2eb3751bb50062e155fa 100644 (file)
@@ -279,7 +279,7 @@ def SAMBA_LIBRARY(bld, libname, source,
     if link_name:
         t.link_name = link_name
 
-    if pc_files is not None:
+    if pc_files is not None and not private_library:
         bld.PKG_CONFIG_FILES(pc_files, vnum=vnum)
 
     if (manpages is not None and 'XSLTPROC_MANPAGES' in bld.env and