diff -ruN bcrypt.orig/kgsha/Makefile bcrypt/kgsha/Makefile --- bcrypt.orig/kgsha/Makefile 2005-08-11 16:08:32.000000000 +1000 +++ bcrypt/kgsha/Makefile 2005-11-11 05:59:59.000000000 +1100 @@ -20,6 +20,7 @@ CPP=g++ CPPFLAGS = -fPIC -Wall -Werror -fno-strength-reduce -I../include +CPPFLAGS += $(EXTRA_CXXFLAGS) TARGET = libkgsha.so HEADERS = kg_defs.h kgsha.h kblock.h sha1.h random.h diff -ruN bcrypt.orig/kgsha256/Makefile bcrypt/kgsha256/Makefile --- bcrypt.orig/kgsha256/Makefile 2005-08-11 16:08:32.000000000 +1000 +++ bcrypt/kgsha256/Makefile 2005-11-11 05:59:42.000000000 +1100 @@ -20,6 +20,7 @@ CPP=g++ CPPFLAGS = -fPIC -Wall -Werror -fno-strength-reduce -I../include +CPPFLAGS += $(EXTRA_CXXFLAGS) TARGET = libkgsha256.so HEADERS = kg_defs.h kblock.h diff -ruN bcrypt.orig/mod/Makefile bcrypt/mod/Makefile --- bcrypt.orig/mod/Makefile 2005-01-06 20:15:48.000000000 +1100 +++ bcrypt/mod/Makefile 2005-11-11 05:58:27.000000000 +1100 @@ -101,15 +101,7 @@ CFLAGS += -I$(CUR_DIR)/../include/ -I$(KERNEL_DIR)/include/ -ifeq ($(ARCH), alpha) -CFLAGS += -O2 -pipe -fno-strict-aliasing -fno-common -mno-fp-regs -ffixed-8 -mcpu=ev5 -else -ifeq ($(ARCH), x86_64) -CFLAGS += -O2 -fno-strength-reduce -fno-strict-aliasing -mcmodel=kernel -else -CFLAGS += -O6 -fno-strength-reduce -fno-strict-aliasing -endif -endif +CFLAGS += $(EXTRA_CFLAGS) LDFLAGS = -d -r diff -ruN bcrypt.orig/src/Makefile bcrypt/src/Makefile --- bcrypt.orig/src/Makefile 2005-05-14 16:53:06.000000000 +1000 +++ bcrypt/src/Makefile 2005-11-11 05:58:27.000000000 +1100 @@ -24,6 +24,7 @@ CFLAGS += -L../lib -I../include/ CFLAGS += -Wall -fno-strict-aliasing -g # -O2 #CFLAGS += -g -static -O6 +CFLAGS += $(EXTRA_CFLAGS) LDFLAGS = -ldl -lstdc++ TARGET = bctool