Skip to content

Commit

Permalink
buildtools/wafsamba Provide proper pc file
Browse files Browse the repository at this point in the history
To support building by default python3 we need to fix assumption
that only extra-python with py3 has valid PYTHON_SO_ABI_FLAG used to
create alt name for pc file.

Signed-off-by: Noel Power <[email protected]>
Reviewed-by: Andrew Bartlett <[email protected]>
  • Loading branch information
noelpower authored and Noel Power committed Dec 10, 2018
1 parent 19ac50b commit 3e017aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildtools/wafsamba/wafsamba.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def SAMBA_LIBRARY(bld, libname, source,
t.link_name = link_name

if pc_files is not None and not private_library:
if pyembed and bld.env['IS_EXTRA_PYTHON']:
if pyembed:
bld.PKG_CONFIG_FILES(pc_files, vnum=vnum, extra_name=bld.env['PYTHON_SO_ABI_FLAG'])
else:
bld.PKG_CONFIG_FILES(pc_files, vnum=vnum)
Expand Down

0 comments on commit 3e017aa

Please sign in to comment.