Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
4e256f6f
Unverified
Commit
4e256f6f
authored
Apr 09, 2018
by
Christian Brauner
Committed by
GitHub
Apr 09, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2263 from ffontaine/master
Fix compilation with static libcap and shared gnutls
parents
5eda487c
49bc916b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
configure.ac
configure.ac
+1
-1
Makefile.am
src/lxc/Makefile.am
+6
-2
No files found.
configure.ac
View file @
4e256f6f
...
@@ -263,7 +263,7 @@ AM_CONDITIONAL([ENABLE_GNUTLS], [test "x$enable_gnutls" = "xyes"])
...
@@ -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
...
...
src/lxc/Makefile.am
View file @
4e256f6f
...
@@ -175,6 +175,10 @@ if ENABLE_APPARMOR
...
@@ -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 = \
...
@@ -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
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment