]> git.proxmox.com Git - mirror_lxc.git/commit
Fix compilation with static libcap and shared gnutls
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 7 Apr 2018 13:48:46 +0000 (15:48 +0200)
committerFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 7 Apr 2018 16:12:12 +0000 (18:12 +0200)
commit49bc916b1daa79cffe38fae32059bcdd985c8c8e
treec98e53b6629f94d54159efaae5e462012b1ca942
parent5eda487c1cd88ae6cb521b6f8a923b9e9f109fb9
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@gmail.com>
configure.ac
src/lxc/Makefile.am