]> git.ipfire.org Git - thirdparty/lxc.git/commit
build: Fix support for split build and source dirs
authorDaniel Miranda <danielkza2@gmail.com>
Thu, 21 Aug 2014 10:56:39 +0000 (07:56 -0300)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 19 Sep 2014 23:02:08 +0000 (19:02 -0400)
commit90dca54e539e0ebe193f2da03cc84129ecce9b59
treef013a7670373d254a84334f2335ff1b746c54b7b
parent7b188fe5a2693f27a76fcc2d5a69fb134f3aee76
build: Fix support for split build and source dirs

Building LXC in a separate target directory, by running configure from
outside the source tree, failed with multiple errors, mostly in the
Python and Lua extensions, due to assuming the source dir and build dir
are the same in a few places. To fix that:

- Pre-process setup.py with the appropriate directories at configure
  time
- Introduce the build dir as an include path in the Lua Makefile
- Link the default container configuration file from the alternatives
  in the configure stage, instead of setting a variable and using it
  in the Makefile

Signed-off-by: Daniel Miranda <danielkza2@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
config/etc/Makefile.am
configure.ac
src/lua-lxc/Makefile.am
src/python-lxc/Makefile.am
src/python-lxc/setup.py.in [moved from src/python-lxc/setup.py with 79% similarity]