Whamcloud - gitweb
b=21527 don't use vendors own CFLAGS for the lustre build
authorjohann <johann@lore.(none)>
Thu, 17 Dec 2009 14:22:43 +0000 (15:22 +0100)
committerjohann <johann@lore.(none)>
Thu, 17 Dec 2009 14:22:43 +0000 (15:22 +0100)
lustre.spec.in

index 2b1903f..2122ca2 100644 (file)
@@ -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