mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 14:30:32 +00:00
Merge pull request #2263 from ffontaine/master
Fix compilation with static libcap and shared gnutls
This commit is contained in:
commit
4e256f6fe1
@ -263,7 +263,7 @@ AM_CONDITIONAL([ENABLE_GNUTLS], [test "x$enable_gnutls" = "xyes"])
|
|||||||
|
|
||||||
AM_COND_IF([ENABLE_GNUTLS],
|
AM_COND_IF([ENABLE_GNUTLS],
|
||||||
[AC_CHECK_HEADER([gnutls/gnutls.h],[],[AC_MSG_ERROR([You must install the GnuTLS development package in order to compile lxc])])
|
[AC_CHECK_HEADER([gnutls/gnutls.h],[],[AC_MSG_ERROR([You must install the GnuTLS development package in order to compile lxc])])
|
||||||
AC_CHECK_LIB([gnutls], [gnutls_hash_fast],[],[AC_MSG_ERROR([You must install the GnuTLS development package in order to compile lxc])])
|
AC_CHECK_LIB([gnutls], [gnutls_hash_fast],[true],[AC_MSG_ERROR([You must install the GnuTLS development package in order to compile lxc])])
|
||||||
AC_SUBST([GNUTLS_LIBS], [-lgnutls])])
|
AC_SUBST([GNUTLS_LIBS], [-lgnutls])])
|
||||||
|
|
||||||
# SELinux
|
# SELinux
|
||||||
|
@ -175,6 +175,10 @@ if ENABLE_APPARMOR
|
|||||||
AM_CFLAGS += -DHAVE_APPARMOR
|
AM_CFLAGS += -DHAVE_APPARMOR
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if ENABLE_GNUTLS
|
||||||
|
AM_CFLAGS += -DHAVE_LIBGNUTLS
|
||||||
|
endif
|
||||||
|
|
||||||
if ENABLE_SELINUX
|
if ENABLE_SELINUX
|
||||||
AM_CFLAGS += -DHAVE_SELINUX
|
AM_CFLAGS += -DHAVE_SELINUX
|
||||||
endif
|
endif
|
||||||
@ -196,7 +200,7 @@ liblxc_la_LDFLAGS = \
|
|||||||
-Wl,-soname,liblxc.so.$(firstword $(subst ., ,@LXC_ABI@)) \
|
-Wl,-soname,liblxc.so.$(firstword $(subst ., ,@LXC_ABI@)) \
|
||||||
-version-info @LXC_ABI_MAJOR@
|
-version-info @LXC_ABI_MAJOR@
|
||||||
|
|
||||||
liblxc_la_LIBADD = $(CAP_LIBS) $(SELINUX_LIBS) $(SECCOMP_LIBS)
|
liblxc_la_LIBADD = $(CAP_LIBS) $(GNUTLS_LIBS) $(SELINUX_LIBS) $(SECCOMP_LIBS)
|
||||||
|
|
||||||
bin_SCRIPTS=
|
bin_SCRIPTS=
|
||||||
|
|
||||||
@ -243,7 +247,7 @@ AM_LDFLAGS = -Wl,-E
|
|||||||
if ENABLE_RPATH
|
if ENABLE_RPATH
|
||||||
AM_LDFLAGS += -Wl,-rpath -Wl,$(libdir)
|
AM_LDFLAGS += -Wl,-rpath -Wl,$(libdir)
|
||||||
endif
|
endif
|
||||||
LDADD=liblxc.la @CAP_LIBS@ @SELINUX_LIBS@ @SECCOMP_LIBS@
|
LDADD=liblxc.la @CAP_LIBS@ @GNUTLS_LIBS@ @SELINUX_LIBS@ @SECCOMP_LIBS@
|
||||||
|
|
||||||
if ENABLE_TOOLS
|
if ENABLE_TOOLS
|
||||||
lxc_attach_SOURCES = tools/lxc_attach.c tools/arguments.c tools/tool_utils.c
|
lxc_attach_SOURCES = tools/lxc_attach.c tools/arguments.c tools/tool_utils.c
|
||||||
|
Loading…
Reference in New Issue
Block a user