1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

python: add devmapper library to linking

On occasional gcc releases it's better to specify also -ldevmapper
to linking logic for python object.

It's in fact more correct since the liblvm.c code is using
libdevmapper functions - that were linked in only via
liblvm2app library.
This commit is contained in:
Zdenek Kabelac 2018-02-09 10:21:00 +01:00
parent 7cfe5ab9bc
commit 34a9e3d3cd

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2012 Red Hat, Inc. All rights reserved.
# Copyright (C) 2012-2018 Red Hat, Inc. All rights reserved.
#
# This file is part of LVM2.
#
@ -20,7 +20,7 @@ from distutils.core import setup, Extension
liblvm = Extension('lvm',
sources = ['liblvm_python.c'],
libraries= ['lvm2app'],
libraries= ['lvm2app', 'devmapper'],
library_dirs= ['@top_builddir@/liblvm'],
include_dirs= ['@top_builddir@/include'])