buildtools: Honor LDVERSION when looking for Python library
authorPetr Viktorin <pviktori@redhat.com>
Wed, 12 Nov 2014 15:53:33 +0000 (16:53 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Thu, 23 Apr 2015 23:50:11 +0000 (01:50 +0200)
commitcc491fb080882e36f549fd0a348800431ccb3074
tree953eb948e6a67719f01d8f7eddeafee7a554a03c
parent8ac21ec4aa76beb48c9c26cf1fd45495324d74cc
buildtools: Honor LDVERSION when looking for Python library

Since Python 3.2, Python .so files are tagged for ABI compatibility,
so the library name is something like libpython3.4m.so (note the 'm').
This information is found in distutils.sysconfig.get_config_var('LDVERSION')

This fixes waf issue 1405 (https://code.google.com/p/waf/issues/detail?id=1405)

Signed-off-by: Petr Viktorin <pviktori@redhat.com>
Reviewed-By: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
third_party/waf/wafadmin/Tools/python.py