diff options
Diffstat (limited to 'meta-webserver/recipes-httpd/nostromo/files/0001-GNUmakefile-add-possibility-to-override-variables.patch')
-rw-r--r-- | meta-webserver/recipes-httpd/nostromo/files/0001-GNUmakefile-add-possibility-to-override-variables.patch | 141 |
1 files changed, 141 insertions, 0 deletions
diff --git a/meta-webserver/recipes-httpd/nostromo/files/0001-GNUmakefile-add-possibility-to-override-variables.patch b/meta-webserver/recipes-httpd/nostromo/files/0001-GNUmakefile-add-possibility-to-override-variables.patch new file mode 100644 index 000000000..7cf011b1c --- /dev/null +++ b/meta-webserver/recipes-httpd/nostromo/files/0001-GNUmakefile-add-possibility-to-override-variables.patch | |||
@@ -0,0 +1,141 @@ | |||
1 | From 7fa0d31ec5c0be9dca84a03851b2d44f61527ec8 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Eric=20B=C3=A9nard?= <eric@eukrea.com> | ||
3 | Date: Sun, 4 Dec 2011 16:01:04 +0100 | ||
4 | Subject: [PATCH] GNUmakefile: add possibility to override variables | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | this is useful for cross compilation | ||
10 | |||
11 | Signed-off-by: Eric BĂ©nard <eric@eukrea.com> | ||
12 | --- | ||
13 | Upstream-Status: Inappropriate [embedded specific] | ||
14 | src/libbsd/GNUmakefile | 10 +++++----- | ||
15 | src/libmy/GNUmakefile | 26 +++++++++++++------------- | ||
16 | src/nhttpd/GNUmakefile | 12 ++++++------ | ||
17 | src/tools/GNUmakefile | 8 ++++---- | ||
18 | 4 files changed, 28 insertions(+), 28 deletions(-) | ||
19 | |||
20 | diff --git a/src/libbsd/GNUmakefile b/src/libbsd/GNUmakefile | ||
21 | index e2d01a3..b034bc6 100644 | ||
22 | --- a/src/libbsd/GNUmakefile | ||
23 | +++ b/src/libbsd/GNUmakefile | ||
24 | @@ -1,12 +1,12 @@ | ||
25 | -CCFLAGS = -O2 -pipe -Wall -Werror -Wstrict-prototypes -c | ||
26 | +CFLAGS := -O2 -pipe -Wall -Werror -Wstrict-prototypes -c | ||
27 | |||
28 | libbsd.a: strlcpy.o strlcat.o | ||
29 | - ar -r libbsd.a strlcpy.o strlcat.o | ||
30 | - ranlib libbsd.a | ||
31 | + $(AR) -r libbsd.a strlcpy.o strlcat.o | ||
32 | + $(RANLIB) libbsd.a | ||
33 | |||
34 | strlcpy.o: strlcpy.c | ||
35 | - cc ${CCFLAGS} strlcpy.c | ||
36 | + $(CC) $(CFLAGS) strlcpy.c | ||
37 | strlcat.o: strlcat.c | ||
38 | - cc ${CCFLAGS} strlcat.c | ||
39 | + $(CC) $(CFLAGS) strlcat.c | ||
40 | clean: | ||
41 | rm -f libbsd.a *.o | ||
42 | diff --git a/src/libmy/GNUmakefile b/src/libmy/GNUmakefile | ||
43 | index ce90dd9..891ffea 100644 | ||
44 | --- a/src/libmy/GNUmakefile | ||
45 | +++ b/src/libmy/GNUmakefile | ||
46 | @@ -1,30 +1,30 @@ | ||
47 | -CCFLAGS = -O2 -Wall -Werror -Wstrict-prototypes -c | ||
48 | +CFLAGS := -O2 -Wall -Werror -Wstrict-prototypes -c | ||
49 | |||
50 | libmy.a: strcutl.o strcutw.o strcuts.o strcuti.o strcutf.o flog.o flogd.o fparse.o strlower.o strb64d.o | ||
51 | - ar -r libmy.a strcutl.o strcutw.o strcuts.o strcuti.o strcutf.o flog.o flogd.o fparse.o strlower.o strb64d.o | ||
52 | - ranlib libmy.a | ||
53 | + $(AR) -r libmy.a strcutl.o strcutw.o strcuts.o strcuti.o strcutf.o flog.o flogd.o fparse.o strlower.o strb64d.o | ||
54 | + $(RANLIB) libmy.a | ||
55 | |||
56 | strcutl.o: strcutl.c | ||
57 | - cc ${CCFLAGS} strcutl.c | ||
58 | + $(CC) $(CFLAGS) strcutl.c | ||
59 | strcutw.o: strcutw.c | ||
60 | - cc ${CCFLAGS} strcutw.c | ||
61 | + $(CC) $(CFLAGS) strcutw.c | ||
62 | strcuts.o: strcuts.c | ||
63 | - cc ${CCFLAGS} strcuts.c | ||
64 | + $(CC) $(CFLAGS) strcuts.c | ||
65 | strcuti.o: strcuti.c | ||
66 | - cc ${CCFLAGS} strcuti.c | ||
67 | + $(CC) $(CFLAGS) strcuti.c | ||
68 | strcutf.o: strcutf.c | ||
69 | - cc ${CCFLAGS} strcutf.c | ||
70 | + $(CC) $(CFLAGS) strcutf.c | ||
71 | strlower.o: strlower.c | ||
72 | - cc ${CCFLAGS} strlower.c | ||
73 | + $(CC) $(CFLAGS) strlower.c | ||
74 | strb64d.o: strb64d.c | ||
75 | - cc ${CCFLAGS} strb64d.c | ||
76 | + $(CC) $(CFLAGS) strb64d.c | ||
77 | |||
78 | flog.o: flog.c | ||
79 | - cc ${CCFLAGS} flog.c | ||
80 | + $(CC) $(CFLAGS) flog.c | ||
81 | flogd.o: flogd.c | ||
82 | - cc ${CCFLAGS} flogd.c | ||
83 | + $(CC) $(CFLAGS) flogd.c | ||
84 | fparse.o: fparse.c | ||
85 | - cc ${CCFLAGS} fparse.c | ||
86 | + $(CC) $(CFLAGS) fparse.c | ||
87 | |||
88 | clean: | ||
89 | rm -f libmy.a *.o | ||
90 | diff --git a/src/nhttpd/GNUmakefile b/src/nhttpd/GNUmakefile | ||
91 | index f6d12de..9524911 100644 | ||
92 | --- a/src/nhttpd/GNUmakefile | ||
93 | +++ b/src/nhttpd/GNUmakefile | ||
94 | @@ -1,18 +1,18 @@ | ||
95 | -CCFLAGS = -O2 -pipe -Wall -Wstrict-prototypes -c | ||
96 | +CFLAGS := -O2 -pipe -Wall -Wstrict-prototypes -c | ||
97 | |||
98 | nhttpd: main.o http.o sys.o | ||
99 | - cc -L../libmy -L../libbsd -o nhttpd main.o http.o sys.o -lmy -lbsd -lssl -lcrypt | ||
100 | - strip nhttpd | ||
101 | + $(CC) -L../libmy -L../libbsd -o nhttpd main.o http.o sys.o -lmy -lbsd -lssl -lcrypt | ||
102 | +# $(STRIP) nhttpd | ||
103 | nroff -Tascii -c -mandoc nhttpd.8 > nhttpd.cat8 | ||
104 | |||
105 | main.o: main.c | ||
106 | - cc ${CCFLAGS} main.c | ||
107 | + $(CC) $(CFLAGS) main.c | ||
108 | |||
109 | http.o: http.c | ||
110 | - cc ${CCFLAGS} http.c | ||
111 | + $(CC) $(CFLAGS) http.c | ||
112 | |||
113 | sys.o: sys.c | ||
114 | - cc ${CCFLAGS} sys.c | ||
115 | + $(CC) $(CFLAGS) sys.c | ||
116 | |||
117 | clean: | ||
118 | rm -f nhttpd nhttpd.cat8 *.o | ||
119 | diff --git a/src/tools/GNUmakefile b/src/tools/GNUmakefile | ||
120 | index 15bea61..663ddb5 100644 | ||
121 | --- a/src/tools/GNUmakefile | ||
122 | +++ b/src/tools/GNUmakefile | ||
123 | @@ -1,11 +1,11 @@ | ||
124 | -CCFLAGS = -O2 -pipe -Wall -Werror -Wstrict-prototypes -c | ||
125 | +CCFLAGS := -O2 -pipe -Wall -Werror -Wstrict-prototypes | ||
126 | |||
127 | crypt: crypt.o | ||
128 | - cc -o crypt crypt.o -lcrypt | ||
129 | - strip crypt | ||
130 | + $(CC) $(CFLAGS) -o crypt crypt.o -lcrypt | ||
131 | +# $(STRIP) crypt | ||
132 | |||
133 | crypt.o: crypt.c | ||
134 | - cc ${CCFLAGS} crypt.c | ||
135 | + $(CC) $(CFLAGS) -c crypt.c | ||
136 | |||
137 | clean: | ||
138 | rm -f crypt *.o | ||
139 | -- | ||
140 | 1.7.6.4 | ||
141 | |||