Patch Makefile.patch of unixbench in order to let it honor ENV VAR for
compiler setup, if there is any provided.

The really change is CC=gcc --> CC?=gcc

I think this change should have no impact to any existing unixbench testers.

-- 
Eric Li
李咏竹
Google Kirkland
Index: client/tests/unixbench/Makefile.patch
===================================================================
--- client/tests/unixbench/Makefile.patch       (revision 4247)
+++ client/tests/unixbench/Makefile.patch       (working copy)
@@ -1,9 +1,12 @@
 diff -c -r src/Makefile newsrc/Makefile
 *** src/Makefile       Wed Jul 28 15:05:02 1999
---- newsrc/Makefile    Mon Jan  4 19:04:45 2010
+--- srcnew/Makefile    Tue Feb 16 19:43:54 2010
 ***************
-*** 35,50 ****
-  CC=gcc
+*** 32,50 ****
+  SHELL = /bin/sh
+  #HZ = ????      #(read from environment)
+  CFLAGS = -DTIME
+! CC=gcc
   
   ## For Linux 486/Pentium, GCC 2.7.x and 2.8.x
 ! #OPTON = -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math \
@@ -19,8 +22,11 @@
   
   ## Very generic
   #OPTON = -O
---- 35,51 ----
-  CC=gcc
+--- 32,51 ----
+  SHELL = /bin/sh
+  #HZ = ????      #(read from environment)
+  CFLAGS = -DTIME
+! CC?=gcc
   
   ## For Linux 486/Pentium, GCC 2.7.x and 2.8.x
 ! # -O2 already turned -fforce-mem
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to