container: bring back support for lxc 2.x under a feature flag
Some of our users (Ubports) are still using an older version of liblxc (2.x as in Ubuntu 16.04) and we still want to support them. Support for LXC 2.x is now available again and auto detected at configuration time.
This commit is contained in:
parent
24bd4f69a1
commit
7f1cdf94a0
2 changed files with 64 additions and 26 deletions
|
|
@ -69,6 +69,12 @@ pkg_check_modules(DBUS dbus-1 REQUIRED)
|
|||
pkg_check_modules(LXC lxc REQUIRED)
|
||||
pkg_check_modules(PROPERTIES_CPP properties-cpp REQUIRED)
|
||||
|
||||
message(STATUS "LXC version: ${LXC_VERSION}")
|
||||
if (${LXC_VERSION} VERSION_LESS 3.0)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_LXC2_SUPPORT")
|
||||
message(STATUS "Building with LXC 2.x compatibility support")
|
||||
endif()
|
||||
|
||||
option(ANBOX_ENABLE_WAYLAND "Enable wayland support" ON)
|
||||
if (ANBOX_ENABLE_WAYLAND)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DWAYLAND_SUPPORT")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue