From: Aleksandr Mezin Date: Mon, 6 Jun 2016 01:50:59 +0000 (+0600) Subject: python-lxc: follow global rpath setting for autotools builds X-Git-Tag: lxc-2.1.0~411^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1042%2Fhead;p=thirdparty%2Flxc.git python-lxc: follow global rpath setting for autotools builds When LXC is configured with --enable-rpath, I expect Python bindings to be able to find the library in a non-standard location, just like LXC command-line tools. Signed-off-by: Aleksandr Mezin --- diff --git a/src/python-lxc/Makefile.am b/src/python-lxc/Makefile.am index b4c21a80d..05a57385d 100644 --- a/src/python-lxc/Makefile.am +++ b/src/python-lxc/Makefile.am @@ -6,10 +6,16 @@ else DISTSETUPOPTS= endif +if ENABLE_RPATH + RPATHOPTS=-R $(libdir) +else + RPATHOPTS= +endif + CALL_SETUP_PY := cd @srcdir@ && $(PYTHON) setup.py build -b @abs_builddir@/build egg_info -e @abs_builddir@ all: - $(CALL_SETUP_PY) build_ext -I @abs_top_srcdir@/src -L @abs_top_builddir@/src/lxc --no-pkg-config + $(CALL_SETUP_PY) build_ext -I @abs_top_srcdir@/src -L @abs_top_builddir@/src/lxc $(RPATHOPTS) --no-pkg-config DESTDIR = / # default