[lxc-devel] [lxc/lxc] c06ed2: configure.ac: fix the check for static libcap
GitHub
noreply at github.com
Thu Jan 4 09:29:19 UTC 2018
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: c06ed219c47098f34485d408410b6ecc94a40877
https://github.com/lxc/lxc/commit/c06ed219c47098f34485d408410b6ecc94a40877
Author: Serge Hallyn <shallyn at cisco.com>
Date: 2018-01-03 (Wed, 03 Jan 2018)
Changed paths:
M configure.ac
Log Message:
-----------
configure.ac: fix the check for static libcap
The existing check doesn't work, because when you statically
link a program against libc, any functions not called are not
included. So cap_init() which we check for is not there in
the built binary.
So instead just check whether a "gcc -lcap -static" works.
If libcap.a is not available it will fail, if it is it will
succeed.
Signed-off-by: Serge Hallyn <shallyn at cisco.com>
Commit: 773f442e3fcecf4a1ab0bcf91945a96e61a424e8
https://github.com/lxc/lxc/commit/773f442e3fcecf4a1ab0bcf91945a96e61a424e8
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2018-01-04 (Thu, 04 Jan 2018)
Changed paths:
M configure.ac
Log Message:
-----------
Merge pull request #2070 from hallyn/2018-01-03/staticlibcap
configure.ac: fix the check for static libcap
Compare: https://github.com/lxc/lxc/compare/acd546adadf8...773f442e3fce
More information about the lxc-devel
mailing list