mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-05 21:04:23 +00:00
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 <mezin.alexander@gmail.com>
This commit is contained in:
parent
9d54166ca5
commit
2c500c107a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user