use the %configure macro defined by the RPM installation so that the
vendor's filesystem hierarchy preferences are observered
i=wangyb
i=yangsheng
Don't use vendors own CFLAGS for the lustre build
(this portion was never inspected but landed some time ago to b1_8
directly in response to build failures due to the overzealous CFLAGS)
# Set an explicit path to our Linux tree, if we can.
cd $RPM_BUILD_DIR/lustre-%{version}
-./configure @ac_configure_args@ %{?configure_flags:configure_flags} \
- --sysconfdir=%{_sysconfdir} \
- --mandir=%{_mandir} \
- --libdir=%{_libdir}
+# override %optflags so that the vendor's overzealous flags don't create
+# build failures
+%define optflags -g -O2 -Werror
+%configure @ac_configure_args@ %{?configure_flags:configure_flags}
make -j $RPM_BUILD_NCPUS -s
%install