From dfb8f06a3b1d35d736ce95ea121d4019ea391b26 Mon Sep 17 00:00:00 2001 From: Cedric Le Goater Date: Fri, 21 Jan 2011 11:01:43 +0100 Subject: [PATCH] take into account new configure option --with-linuxdir Signed-off-by: Cedric Le Goater --- Makefile.am | 2 +- lxc.spec.in | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 9945d00c7..887e300d0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -13,4 +13,4 @@ ChangeLog:: @touch ChangeLog rpm: dist - rpmbuild --clean -ta ${distdir}.tar.gz + rpmbuild --clean -ta --define "ksrc ${LINUX_DIR}" ${distdir}.tar.gz diff --git a/lxc.spec.in b/lxc.spec.in index 379b53d76..452493de4 100644 --- a/lxc.spec.in +++ b/lxc.spec.in @@ -56,7 +56,8 @@ development of the linux containers. %prep %setup %build -PATH=$PATH:/usr/sbin:/sbin %configure +test "%{ksrc}" != "none" && args="--with-linuxdir=%{ksrc}" +PATH=$PATH:/usr/sbin:/sbin %configure $args make %{?_smp_mflags} %install -- 2.47.2