From 34a9e3d3cdde5771e30fbd686b20ffba1647a497 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 9 Feb 2018 10:21:00 +0100 Subject: [PATCH] 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. --- python/setup.py.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/setup.py.in b/python/setup.py.in index 6a44482a6..dac999a85 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -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'])