LXC compiling

This commit is contained in:
Neale Pickett 2011-09-26 13:00:42 -06:00
parent fb2b4e13bc
commit 5ae8292a98
3 changed files with 14 additions and 2 deletions

View File

@ -6,7 +6,7 @@ LIBCAP_TAR = $(CACHE)/libcap-$(LIBCAP_VERSION).tar.gz
LIBCAP_URL = http://ftp.debian.org/debian/pool/main/libc/libcap2/libcap2_$(LIBCAP_VERSION).orig.tar.gz
LIBCAP_SRCDIR = $(LIBCAP_BUILDDIR)/libcap-$(LIBCAP_VERSION)
LIBCAP_LDOPTS = -L$(CURDIR)/$(LIBCAP_SRCDIR)/libcap
LIBCAP_LDFLAGS = -L$(CURDIR)/$(LIBCAP_SRCDIR)/libcap
LIBCAP_CFLAGS = -I$(CURDIR)/$(LIBCAP_SRCDIR)/libcap/include
$(LIBCAP_TAR):

View File

@ -26,12 +26,13 @@ lxc-source: $(LXC_BUILDDIR)/source
$(LXC_BUILDDIR)/source: $(LXC_TAR)
mkdir -p $(LXC_BUILDDIR)
zcat $(LXC_TAR) | (cd $(LXC_BUILDDIR) && tar xf -)
cp packages/lxc/utmp.c $(LXC_SRCDIR)/src/lxc/
touch $@
lxc-build: $(LXC_BUILDDIR)/built
$(LXC_BUILDDIR)/built: $(LXC_BUILDDIR)/source libcap-build
cd $(LXC_SRCDIR) && CFLAGS="$(LIBCAP_CFLAGS)" LDFLAGS="$(LIBCAP_LDFLAGS)" ./configure $(CONFIG_XCOMPILE_FLAGS)
$(MAKE) -C $(LXC_SRCDIR) LDFLAGS="-R /opt/lxc/lib"
LD_RUN_PATH=/opt/lxc/lib $(MAKE) -C $(LXC_SRCDIR)
touch $@
lxc-install: lxc-build

11
packages/lxc/utmp.c Normal file
View File

@ -0,0 +1,11 @@
/* Detecting runlevels from utmp is straight up bullshit, you.
1. runit doesn't have run levels
2. dbtl doesn't write utmp
3. even if it did, it doesn't have the glibc functions this code
wants
*/
int lxc_utmp_mainloop_add(struct lxc_epoll_descr *descr,
struct lxc_handler *handler) {
return 0;
}