From 5e5a5a2c561de45cd8580579242c879923fca95d Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sun, 5 Dec 2010 14:53:02 +1100 Subject: [PATCH] Add autogen/configure to the build instructions. Update the RPM sepcfile to run autogen/configure --- INSTALL | 2 ++ packaging/RPM/libiscsi.spec.in | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/INSTALL b/INSTALL index 7fe6711..8598ba9 100644 --- a/INSTALL +++ b/INSTALL @@ -4,6 +4,8 @@ and executables under /usr/bin From source: ============ +$ ./autogen.sh +$ ./configure $ make # make install diff --git a/packaging/RPM/libiscsi.spec.in b/packaging/RPM/libiscsi.spec.in index a7104f6..ff63d41 100644 --- a/packaging/RPM/libiscsi.spec.in +++ b/packaging/RPM/libiscsi.spec.in @@ -38,6 +38,15 @@ CC="gcc" export CC +## always run autogen.sh +./autogen.sh + +CFLAGS="$RPM_OPT_FLAGS $EXTRA -O0" ./configure \ + --prefix=%{_prefix} \ + --sysconfdir=%{_sysconfdir} \ + --mandir=%{_mandir} \ + --localstatedir="/var" + %install # Clean up in case there is trash left from a previous build rm -rf $RPM_BUILD_ROOT