move sed expr. into function
[linux-2.6.git] / kernel-2.6.spec
index 24fb21d..8b132ee 100644 (file)
@@ -1026,11 +1026,6 @@ cd ..
 ###
 %build
 
-#### Planet-Lab ####
-# -Werror breaks F14 builds
-sed -i -e "s:-Wno-array-bounds -Werror:-Wno-array-bounds:g" Makefile
-#### Planet-Lab ####
-
 %if %{with_sparse}
 %define sparse_mflags  C=1
 %endif
@@ -1082,6 +1077,11 @@ BuildKernel() {
     %endif
     %endif
 
+    #### Planet-Lab ####
+    # -Werror breaks F14 builds
+    sed -i -e "s:-Wno-array-bounds -Werror:-Wno-array-bounds:g" Makefile
+    #### Planet-Lab ####
+
     # and now to start the build process
 
     make -s mrproper