From: johann Date: Thu, 17 Dec 2009 14:22:43 +0000 (+0100) Subject: b=21527 don't use vendors own CFLAGS for the lustre build X-Git-Tag: v1_8_1_58~11 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=a9283231ee676a206e42711ce469cfafe2a746b6;p=fs%2Flustre-release.git b=21527 don't use vendors own CFLAGS for the lustre build --- 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