--- benchmark/Makefile | 4 +++- testing/Makefile | 2 +- user/Makefile | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) --- drbd-8.0.6.orig/benchmark/Makefile 2007-05-22 14:57:52.000000000 +0200 +++ drbd-8.0.6/benchmark/Makefile 2007-09-17 14:20:13.584966000 +0200 @@ -1,6 +1,8 @@ -CFLAGS=-Wall +CFLAGS=-Wall $(OPTFLAGS) + +OPTFLAGS=-O2 all: dm install: --- drbd-8.0.6.orig/testing/Makefile 2007-05-22 14:58:01.000000000 +0200 +++ drbd-8.0.6/testing/Makefile 2007-09-17 14:20:37.310216000 +0200 @@ -1,7 +1,7 @@ PROGRAMS=show_size access_and_verify #drbd_states -CFLAGS=-Wall -I../drbd +CFLAGS=-Wall $(OPTFLAGS) -I../drbd all: $(PROGRAMS) clean: rm -f $(PROGRAMS) --- drbd-8.0.6.orig/user/Makefile 2007-08-02 21:09:28.000000000 +0200 +++ drbd-8.0.6/user/Makefile 2007-09-17 14:23:06.198178000 +0200 @@ -18,11 +18,12 @@ # 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 : drbdsetup: CFLAGS += -I$(KDIR)/include drbdsetup drbdmeta: CFLAGS += -fno-strict-aliasing drbdadm-obj = drbdadm_scanner.o drbdadm_parser.o drbdadm_main.o \