From a9283231ee676a206e42711ce469cfafe2a746b6 Mon Sep 17 00:00:00 2001 From: johann Date: Thu, 17 Dec 2009 15:22:43 +0100 Subject: [PATCH] b=21527 don't use vendors own CFLAGS for the lustre build --- lustre.spec.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre.spec.in b/lustre.spec.in index 2b1903f..2122ca2 100644 --- a/lustre.spec.in +++ b/lustre.spec.in @@ -106,6 +106,9 @@ rm -rf $RPM_BUILD_ROOT # Set an explicit path to our Linux tree, if we can. cd $RPM_BUILD_DIR/lustre-%{version} +# 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 -- 1.8.3.1