[lxc-devel] [lxc/lxc] 49bc91: Fix compilation with static libcap and shared gnut...

GitHub noreply at github.com
Mon Apr 9 08:15:11 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 49bc916b1daa79cffe38fae32059bcdd985c8c8e
      https://github.com/lxc/lxc/commit/49bc916b1daa79cffe38fae32059bcdd985c8c8e
  Author: Fabrice Fontaine <fontaine.fabrice at gmail.com>
  Date:   2018-04-07 (Sat, 07 Apr 2018)

  Changed paths:
    M configure.ac
    M src/lxc/Makefile.am

  Log Message:
  -----------
  Fix compilation with static libcap and shared gnutls

Commit c06ed219c47098f34485d408410b6ecc94a40877 has broken
compilation with a static libcap and a shared gnutls.
This results in a build failure on init_lxc_static if gnutls is
a shared library as init_lxc_static is built with -all-static option
(see src/lxc/Makefile.am) and AC_CHECK_LIB adds gnutls to LIBS.

This commit fix the issue by removing default behavior of AC_CHECK_LIB
and handling manually GNUTLS_LIBS and HAVE_LIBGNUTLS

Fixes:
 - http://autobuild.buildroot.net/results/b655d6853c25a195df28d91512b3ffb6c654fc90

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>


  Commit: 4e256f6fe1b22d5a65346fee55e5a2023f8ed155
      https://github.com/lxc/lxc/commit/4e256f6fe1b22d5a65346fee55e5a2023f8ed155
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2018-04-09 (Mon, 09 Apr 2018)

  Changed paths:
    M configure.ac
    M src/lxc/Makefile.am

  Log Message:
  -----------
  Merge pull request #2263 from ffontaine/master

Fix compilation with static libcap and shared gnutls


Compare: https://github.com/lxc/lxc/compare/5eda487c1cd8...4e256f6fe1b2


More information about the lxc-devel mailing list