build: fixed destination name for pc_files
[nivanova/samba-autobuild/.git] / buildtools / wafsamba / wafsamba.py
index 03be97f29930fac25451ceb4f5966aa13d58047e..2a79f702ef694d24070c0887ecae9f4e0b5cde9e 100644 (file)
@@ -701,5 +701,6 @@ def PKG_CONFIG_FILES(bld, pc_files):
     dest = '${PKGCONFIGDIR}'
     dest = bld.EXPAND_VARIABLES(dest)
     for f in TO_LIST(pc_files):
-        INSTALL_FILES(bld, dest, f+'.in', flat=True, destname=f)
+        INSTALL_FILES(bld, dest, f+'.in', flat=True,
+                      destname=os.path.basename(f))
 Build.BuildContext.PKG_CONFIG_FILES = PKG_CONFIG_FILES