]> git.pld-linux.org Git - packages/ccs.git/blob - ccs-optflags.patch
- typo
[packages/ccs.git] / ccs-optflags.patch
1 diff -Nur cluster-1.02.00.orig/ccs/ccs_test/Makefile cluster-1.02.00.optflags/ccs/ccs_test/Makefile
2 --- cluster-1.02.00.orig/ccs/ccs_test/Makefile  2005-02-11 18:30:44.000000000 +0100
3 +++ cluster-1.02.00.optflags/ccs/ccs_test/Makefile      2006-08-04 02:47:34.000000000 +0200
4 @@ -19,14 +19,13 @@
5  INCLUDE+= -I. -I${top_srcdir}/include -I${ccs_libdir} -I${top_srcdir}/config
6  
7  ifeq ($(DEBUG),y)
8 -CFLAGS+= -O2 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DDEBUG -g \
9 +CFLAGS+= $(OPTCFLAGS) -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DDEBUG -g \
10         -DCCS_RELEASE_NAME=\"${RELEASE}\"
11  else
12 -CFLAGS+= -O2 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DCCS_RELEASE_NAME=\"${RELEASE}\"
13 +CFLAGS+= $(OPTCFLAGS) -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DCCS_RELEASE_NAME=\"${RELEASE}\"
14  endif
15  
16 -LDFLAGS+= -L${ccs_libdir}
17 -LOADLIBES+= -lccs
18 +LOADLIBES+= -L${ccs_libdir} -lccs
19  
20  all: ccs_test
21  
22 @@ -34,7 +33,7 @@
23         cp ccs_test ${top_srcdir}/bin
24  
25  ccs_test: ccs_test.c ${ccs_libdir}/libccs.a
26 -       ${CC} ${CFLAGS} ${INCLUDE} ccs_test.c ${LDFLAGS} ${LOADLIBES} ${LDLIBS}-o $@
27 +       ${CC} ${CFLAGS} ${INCLUDE} ${LDFLAGS} ccs_test.c ${LOADLIBES} ${LDLIBS} -o $@
28  
29  ${ccs_libdir}/libccs.a:
30         cd ${ccs_libdir} && ${MAKE} libccs.a
31 diff -Nur cluster-1.02.00.orig/ccs/ccs_tool/Makefile cluster-1.02.00.optflags/ccs/ccs_tool/Makefile
32 --- cluster-1.02.00.orig/ccs/ccs_tool/Makefile  2005-05-12 17:17:39.000000000 +0200
33 +++ cluster-1.02.00.optflags/ccs/ccs_tool/Makefile      2006-08-04 02:48:38.000000000 +0200
34 @@ -17,20 +17,20 @@
35  INCLUDE= -I. -I${top_srcdir}/config -I${top_srcdir}/include -I${ccs_libdir} -I${incdir}
36  
37  ifeq ($(DEBUG),y)
38 -CFLAGS+= -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DDEBUG -g \
39 +CFLAGS+= -Wall $(OPTCFLAGS) -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DDEBUG -g \
40          `xml2-config --cflags` -DCCS_RELEASE_NAME=\"${RELEASE}\"
41  else
42 -CFLAGS+= -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE \
43 +CFLAGS+= -Wall $(OPTCFLAGS) -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE \
44          `xml2-config --cflags` -DCCS_RELEASE_NAME=\"${RELEASE}\"
45  endif
46  
47 -LDFLAGS+= -L${ccs_libdir} `xml2-config --libs` -L${libdir}
48 +LOADLIBES+= -L${ccs_libdir} `xml2-config --libs` -L${libdir}
49  LOADLIBES+= -lccs -lmagma -lmagmamsg -ldl
50  
51  all: ccs_tool
52  
53  ccs_tool: ccs_tool.c update.c upgrade.c old_parser.c editconf.c
54 -       ${CC} ${CFLAGS} ${INCLUDE} -o $@ $^ ${LDFLAGS} ${LOADLIBES}
55 +       ${CC} ${CFLAGS} ${LDFLAGS} ${INCLUDE} -o $@ $^ ${LOADLIBES}
56  
57  clean:
58         rm -f *.o ccs_tool *~
59 diff -Nur cluster-1.02.00.orig/ccs/daemon/Makefile cluster-1.02.00.optflags/ccs/daemon/Makefile
60 --- cluster-1.02.00.orig/ccs/daemon/Makefile    2004-10-19 01:00:39.000000000 +0200
61 +++ cluster-1.02.00.optflags/ccs/daemon/Makefile        2006-08-04 02:43:07.000000000 +0200
62 @@ -18,14 +18,14 @@
63  INCLUDE= -I. -I../include -I../common -I${top_srcdir}/config -I${incdir}
64  
65  ifeq ($(DEBUG),y)
66 -CFLAGS+= -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DDEBUG -g \
67 +CFLAGS+= -Wall $(OPTCFLAGS) -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DDEBUG -g \
68         `xml2-config --cflags` -DCCS_RELEASE_NAME=\"${RELEASE}\"
69  else
70 -CFLAGS+= -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE \
71 +CFLAGS+= -Wall $(OPTCFLAGS) -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE \
72         `xml2-config --cflags` -DCCS_RELEASE_NAME=\"${RELEASE}\"
73  endif
74  
75 -LDFLAGS+= -L${libdir} `xml2-config --libs` -lpthread -lmagma -lmagmamsg -ldl
76 +LIBS += -L${libdir} `xml2-config --libs` -lpthread -lmagma -lmagmamsg -ldl
77  
78  all: ccsd
79  
80 @@ -33,7 +33,7 @@
81         cp ccsd ${top_srcdir}/bin
82  
83  ccsd: ccsd.c cnx_mgr.c cluster_mgr.c misc.c ../common/log.c globals.c
84 -       ${CC} ${CFLAGS} ${INCLUDE} -o $@ $^ ${LDFLAGS}
85 +       ${CC} ${CFLAGS} ${LDFLAGS} ${INCLUDE} -o $@ $^ ${LIBS}
86  
87  install: ccsd
88         install -d ${sbindir}
89 diff -Nur cluster-1.02.00.orig/ccs/lib/Makefile cluster-1.02.00.optflags/ccs/lib/Makefile
90 --- cluster-1.02.00.orig/ccs/lib/Makefile       2004-08-03 18:39:14.000000000 +0200
91 +++ cluster-1.02.00.optflags/ccs/lib/Makefile   2006-08-04 02:44:51.000000000 +0200
92 @@ -17,9 +17,9 @@
93  INCLUDE = -I../include -I../common
94  
95  ifeq ($(DEBUG),y)
96 -CFLAGS+= -O2 -D_FILE_OFFSET_BITS=64 -DDEBUG -g
97 +CFLAGS+= $(OPTCFLAGS) -D_FILE_OFFSET_BITS=64 -DDEBUG -g
98  else
99 -CFLAGS+= -O2 -D_FILE_OFFSET_BITS=64
100 +CFLAGS+= $(OPTCFLAGS) -D_FILE_OFFSET_BITS=64
101  endif
102   
103  all: libccs.a
This page took 0.096451 seconds and 3 git commands to generate.