[lxc-devel] [PATCH] add -lrt back for liblxc.so link
Stéphane Graber
stgraber at ubuntu.com
Thu Feb 21 21:58:36 UTC 2013
On 02/21/2013 04:37 PM, Dwight Engen wrote:
> got link error liblxc.so: undefined reference to `clock_gettime'
> clock_gettime is used by lxclock.c and is indeed in librt.
>
> Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
> ---
> src/lxc/Makefile.am | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am
> index aba2e67..5497fab 100644
> --- a/src/lxc/Makefile.am
> +++ b/src/lxc/Makefile.am
> @@ -168,6 +168,10 @@ AM_LDFLAGS += -Wl,-rpath -Wl,$(libdir)
> endif
> LDADD=liblxc.so @CAP_LIBS@ @APPARMOR_LIBS@ @SECCOMP_LIBS@
>
> +if !IS_BIONIC
> +LDADD += -lrt
> +endif
> +
> lxc_attach_SOURCES = lxc_attach.c
> lxc_cgroup_SOURCES = lxc_cgroup.c
> lxc_checkpoint_SOURCES = lxc_checkpoint.c
>
Can we do that with a statement in configure.ac similar to that for
sem_open instead of using !IS_BIONIC?
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20130221/49f3d89a/attachment.pgp>
More information about the lxc-devel
mailing list