[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH] libxenstat: fixed Makefile for building python-bindings
- To: xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: Jonas Licht <jonas.licht@xxxxxxxxxxxxxxxxx>
- Date: Wed, 4 Mar 2020 18:29:39 +0100
- Autocrypt: addr=jonas.licht@xxxxxxxxxxxxxxxxx; prefer-encrypt=mutual; keydata= mQINBFUAuaIBEAC3OEog5gZmx2hdTwZwT02CZzfB9Zw4XSk4vR/CfgIXwkqPXTNxppLF7N3s lRTPFInsvkkEC9Er7QNqx5uMITwwFTU/d5CBOmjW0hPJrXGZDUsm+u/QB+EG9sQtCz38XlX5 hAkm4ZnAU7SFcNyoGaR+ilX4uNhzl7DzgzInXHrLrffInchYQBCXXP1d5M6uYyah5Tzf418l nx+OfNTARtEknev2XrHu07LNI/ufdAmz0LUMR+Cc4V+gxAa/978Y0KdDTor1Jpd1Tjdb4nAk ioFNyeAm9pS4AMFj6YGXCopmMskR8AcS9P5KHiLSq8OXBVVk1lSKKEEXmiPBl0bJ5pOZuCRV hyse9RabUBZIj9UtlFE1EAyUvTQWClwQZSi04+FkC7mzVLExWpi5jxPfx8hDBY9fjqc35jIN Nv3P+eZQSs4z3T2OfcVXKYTh45u4HZaxlyjeQUTh+zbwHYPqMkhASbO4Vahk09jtkZoXHPdd 7GRP2822x0O4RpRquEXgnp6SqFWYYSNDDDbd3cS+IcasAb+VHoAVqF4upt9C/kvKTA6IndjB jYQhkvAniPocbPZZ9FQHfl57AJXvagArFjNwn83Yf/efcrlqwnAO5W1IRtBpI/qY6LfbjDIY aQGh9kahYbsORhrCmG1pPOOKjcFgXIgtxT/PS8HovXxd/sowUwARAQABtCtKb25hcyBMaWNo dCA8am9uYXMubGljaHRAZmVtLnR1LWlsbWVuYXUuZGU+iQI4BBMBAgAiBQJYeUSZAhsDBgsJ CAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRBvS+fzGZpbwWEfD/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wei Liu <wl@xxxxxxx>
- Delivery-date: Wed, 04 Mar 2020 17:30:01 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Am 04.03.20 um 11:31 schrieb Wei Liu:
> Hi Jonas
Hi Wei
> Thanks for this patch.
>
> On Mon, Mar 02, 2020 at 06:53:38PM +0100, jonas.licht@xxxxxxxxxxxxxxxxx wrote:
>> Fixes the libxenstat Makefile to determine the correct paths
>> of python includes when building python-bindings.
>> Also replaces the -lxenstat linking to correct object files
>> and use the libdir variable for installing.
>>
>> Signed-off-by: Jonas Licht <jonas.licht@xxxxxxxxxxxxxxxxx>
>> ---
>> tools/xenstat/libxenstat/Makefile | 11 +++++------
>> 1 file changed, 5 insertions(+), 6 deletions(-)
>>
>> diff --git a/tools/xenstat/libxenstat/Makefile
>> b/tools/xenstat/libxenstat/Makefile
>> index 03cb212e3b..4a02d2e563 100644
>> --- a/tools/xenstat/libxenstat/Makefile
>> +++ b/tools/xenstat/libxenstat/Makefile
>> @@ -114,18 +114,17 @@ $(BINDINGS): $(SHLIB) $(SHLIB_LINKS) src/xenstat.h
>> SWIG_FLAGS=-module xenstat -Isrc
>>
>> # Python bindings
>> -PYTHON_VERSION=$(PYTHON:python%=%)
>> -PYTHON_FLAGS=-I/usr/include/python$(PYTHON_VERSION)
>> -lpython$(PYTHON_VERSION)
>> +PYTHON_FLAGS=`$(PYTHON) -c 'import distutils.sysconfig; print("-I" +
> A better approach would be to use python-config here.
I'm not quite sure if I can require the python-config tool is installed.
As I see it's not checked by the configure.
I've seen some configure scripts, which has an extra fallback when
python-config is missing.
I was inspired by the m4/python_devel.m4 script too.
Best regards,
Jonas
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|