summaryrefslogtreecommitdiffstats
path: root/libmount/python
diff options
context:
space:
mode:
authorKarel Zak2013-09-20 12:42:45 +0200
committerKarel Zak2013-09-20 12:42:45 +0200
commit8e5c46750073137ff35154242437e56c3b41ec1b (patch)
tree284716fa384af0d64696cbddae25f9aab0f9c0ac /libmount/python
parentlibmount: free username after check (diff)
downloadkernel-qcow2-util-linux-8e5c46750073137ff35154242437e56c3b41ec1b.tar.gz
kernel-qcow2-util-linux-8e5c46750073137ff35154242437e56c3b41ec1b.tar.xz
kernel-qcow2-util-linux-8e5c46750073137ff35154242437e56c3b41ec1b.zip
build-sys: support --with-python[={2,3}]
* we use pkg-config to get CGLAGS and LIBS, use package specific config (e.g. python-config) is non-sense. * default is to follow distribution and use pkg-config module name "python". This is probably symlink to python2.pc or python3.pc. * --with-python=2 forces to pkg-module "python2 >= 2" * --with-python=3 forces to pkg-module "python3 >= 3" Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/python')
-rw-r--r--libmount/python/Makemodule.am3
1 files changed, 1 insertions, 2 deletions
diff --git a/libmount/python/Makemodule.am b/libmount/python/Makemodule.am
index 550ea774b..657cdcb2c 100644
--- a/libmount/python/Makemodule.am
+++ b/libmount/python/Makemodule.am
@@ -12,11 +12,10 @@ pylibmount_la_SOURCES = \
libmount/python/tab.c \
libmount/python/context.c
-pylibmount_la_LIBADD = libmount.la -lpython$(PYTHON_VERSION)
+pylibmount_la_LIBADD = libmount.la $(PYTHON_LIBS)
pylibmount_la_CFLAGS = \
$(AM_CFLAGS) \
- $(PYTHON_INCLUDES) \
$(PYTHON_CFLAGS) \
-I$(ul_libmount_incdir) \
-fno-strict-aliasing #-ggdb3 -O0