]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
python-lxc: follow global rpath setting for autotools builds 1042/head
authorAleksandr Mezin <mezin.alexander@gmail.com>
Mon, 6 Jun 2016 01:50:59 +0000 (07:50 +0600)
committerAleksandr Mezin <mezin.alexander@gmail.com>
Mon, 6 Jun 2016 01:50:59 +0000 (07:50 +0600)
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 <mezin.alexander@gmail.com>
src/python-lxc/Makefile.am

index b4c21a80d3e032c39bd5b421ec03f59ee23d8bc8..05a57385d685517d3d190af38b60c061d0bdd2b2 100644 (file)
@@ -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