]> xenbits.xensource.com Git - xen.git/commitdiff
libxenstat: use python detected by configure for python bindings
authorPeter Große <pegro@friiks.de>
Mon, 12 Jun 2017 23:05:20 +0000 (01:05 +0200)
committerWei Liu <wei.liu2@citrix.com>
Wed, 14 Jun 2017 11:20:51 +0000 (12:20 +0100)
Signed-off-by: Peter Große <pegro@friiks.de>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Julien Grall <julien.grall@arm.com>
(cherry picked from commit b2107b79b006ded5cf2ef41ac65399c3e629f693)

tools/xenstat/libxenstat/Makefile

index 85cec63ebf1f291154b8684af0ce7cc71210c7af..08b0f351724f05795a26258a386d378f3790a709 100644 (file)
@@ -102,7 +102,7 @@ $(BINDINGS): $(SHLIB) $(SHLIB_LINKS) src/xenstat.h
 SWIG_FLAGS=-module xenstat -Isrc
 
 # Python bindings
-PYTHON_VERSION=2.3
+PYTHON_VERSION=$(PYTHON:python%=%)
 PYTHON_FLAGS=-I/usr/include/python$(PYTHON_VERSION) -lpython$(PYTHON_VERSION)
 $(PYMOD): $(PYSRC)
 $(PYSRC): bindings/swig/xenstat.i