summaryrefslogtreecommitdiff
blob: b29f78996cb5c9d0dc319ef5995c879700d18d8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
diff -ruN bcrypt.orig/kgsha/Makefile bcrypt/kgsha/Makefile
--- bcrypt.orig/kgsha/Makefile	2006-03-07 16:52:28.000000000 +1100
+++ bcrypt/kgsha/Makefile	2006-04-23 17:23:31.000000000 +1000
@@ -20,6 +20,7 @@
 
 CPP=g++
 CPPFLAGS = -fPIC -Wall -Werror -fno-strength-reduce -I../include -g
+CPPFLAGS += $(EXTRA_CXXFLAGS)
 
 TARGET = libkgsha.so
 HEADERS = kg_defs.h kgsha.h kblock.h sha1.h random.h
@@ -32,7 +33,7 @@
 	$(CPP) $(CPPFLAGS) -c -o $@ $<
 
 $(TARGET):	$(OBJ)
-		$(LD) $(OBJ)  -o $(TARGET)
+		$(LD) $(OBJ) --soname $(TARGET) --as-needed  -o $(TARGET) -lc
 		cp -f $(TARGET) ../lib
 #		cp -f $(HEADERS) ../include
 clean:
diff -ruN bcrypt.orig/kgsha256/Makefile bcrypt/kgsha256/Makefile
--- bcrypt.orig/kgsha256/Makefile	2006-03-07 16:52:28.000000000 +1100
+++ bcrypt/kgsha256/Makefile	2006-04-23 17:23:18.000000000 +1000
@@ -20,6 +20,7 @@
 
 CPP=g++
 CPPFLAGS = -fPIC -Wall -Werror -fno-strength-reduce -I../include -g
+CPPFLAGS += $(EXTRA_CXXFLAGS)
 
 TARGET = libkgsha256.so
 HEADERS = kg_defs.h kblock.h
@@ -32,7 +33,7 @@
 	$(CPP) $(CPPFLAGS) -c -o $@ $<
 
 $(TARGET):	$(OBJ)
-		$(LD) $(OBJ)  -o $(TARGET)
+		$(LD) $(OBJ) --soname $(TARGET) --as-needed  -o $(TARGET) -lc
 		cp -f $(TARGET) ../lib
 		cp -f $(HEADERS) ../include
 clean:
diff -ruN bcrypt.orig/mod/Makefile bcrypt/mod/Makefile
--- bcrypt.orig/mod/Makefile	2006-04-12 15:32:39.000000000 +1000
+++ bcrypt/mod/Makefile	2006-04-23 17:22:42.000000000 +1000
@@ -110,15 +110,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	2006-04-23 17:22:42.000000000 +1000
@@ -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