Make LXC binaries search the right place for libraries

This commit is contained in:
Neale Pickett 2011-09-26 14:13:37 -06:00
parent 0f5ad7ad46
commit 4e34e990d9
1 changed files with 4 additions and 3 deletions

View File

@ -31,13 +31,14 @@ $(LXC_BUILDDIR)/source: $(LXC_TAR)
lxc-build: $(LXC_BUILDDIR)/built lxc-build: $(LXC_BUILDDIR)/built
$(LXC_BUILDDIR)/built: $(LXC_BUILDDIR)/source libcap-build $(LXC_BUILDDIR)/built: $(LXC_BUILDDIR)/source libcap-build
cd $(LXC_SRCDIR) && CFLAGS="$(LIBCAP_CFLAGS)" LDFLAGS="$(LIBCAP_LDFLAGS)" ./configure $(CONFIG_XCOMPILE_FLAGS) cd $(LXC_SRCDIR) && CFLAGS="$(LIBCAP_CFLAGS)" LDFLAGS="$(LIBCAP_LDFLAGS) -Xlinker -rpath -Xlinker /opt/lxc/lib" ./configure $(CONFIG_XCOMPILE_FLAGS)
LD_RUN_PATH=/opt/lxc/lib $(MAKE) -C $(LXC_SRCDIR) $(MAKE) -C $(LXC_SRCDIR)
touch $@ touch $@
lxc-install: lxc-build lxc-install: lxc-build
mkdir -p $(LXC_PKGDIR)/lib mkdir -p $(LXC_PKGDIR)/lib
cp $(LXC_SRCDIR)/src/lxc/liblxc.so $(LXC_PKGDIR)/lib cp $(LXC_SRCDIR)/src/lxc/liblxc.so $(LXC_PKGDIR)/lib/liblxc.so.0
cp $(LIBCAP_SRCDIR)/libcap/libcap.so.* $(LXC_PKGDIR)/lib
mkdir -p $(LXC_PKGDIR)/bin mkdir -p $(LXC_PKGDIR)/bin
cp $(LXC_PROGRAMS) $(LXC_PKGDIR)/bin cp $(LXC_PROGRAMS) $(LXC_PKGDIR)/bin