|
@@ -0,0 +1,22 @@
+--- benchmark/Makefile.orig 2008-06-04 20:44:11.000000000 +0200
++++ benchmark/Makefile 2008-06-04 20:44:44.000000000 +0200
+@@ -1,4 +1,6 @@
+-CFLAGS=-Wall
++CFLAGS=-Wall $(OPTFLAGS)
++
++OPTFLAGS=-O2
+
+ all: dm io-latency-test
+
+--- user/Makefile.orig 2008-06-04 20:44:57.000000000 +0200
++++ user/Makefile 2008-06-04 20:45:27.000000000 +0200
+@@ -20,7 +20,8 @@
+ KDIR := /lib/modules/$(shell uname -r)/build
+
+ CC = gcc
+-CFLAGS = -g -O2 -c -W -Wall -I../drbd
++OPTFLAGS = -O2
++CFLAGS = -g $(OPTFLAGS) -c -W -Wall -I../drbd
+ # for the netlink connector stuff <linux/connector.h>:
+ drbdsetup: CFLAGS += -I$(KDIR)/include
+ drbdsetup drbdmeta: CFLAGS += -fno-strict-aliasing
|