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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
|
diff -ru webserver.orig/cherokee/Makefile.am webserver/cherokee/Makefile.am
--- webserver.orig/cherokee/Makefile.am 2020-09-24 20:16:03.353687922 +0200
+++ webserver/cherokee/Makefile.am 2020-09-24 23:10:46.335528123 +0200
@@ -122,6 +122,7 @@
libplugin_directory_la_LDFLAGS = $(module_ldflags)
libplugin_directory_la_SOURCES = $(rule_directory)
+libplugin_directory_la_LIBADD = libcherokee-base.la libcherokee-server.la
if STATIC_RULE_DIRECTORY
static_rule_directory_src = $(rule_directory)
@@ -139,6 +140,7 @@
libplugin_extensions_la_LDFLAGS = $(module_ldflags)
libplugin_extensions_la_SOURCES = $(rule_extensions)
+libplugin_extensions_la_LIBADD = libcherokee-base.la libcherokee-server.la
if STATIC_RULE_EXTENSIONS
static_rule_extensions_src = $(rule_extensions)
@@ -156,6 +158,7 @@
libplugin_request_la_LDFLAGS = $(module_ldflags)
libplugin_request_la_SOURCES = $(rule_request)
+libplugin_request_la_LIBADD = libcherokee-base.la libcherokee-server.la
if STATIC_RULE_REQUEST
static_rule_request_src = $(rule_request)
@@ -173,6 +176,7 @@
libplugin_header_la_LDFLAGS = $(module_ldflags)
libplugin_header_la_SOURCES = $(rule_header)
+libplugin_header_la_LIBADD = libcherokee-base.la libcherokee-server.la
if STATIC_RULE_HEADER
static_rule_header_src = $(rule_header)
@@ -190,6 +194,7 @@
libplugin_exists_la_LDFLAGS = $(module_ldflags)
libplugin_exists_la_SOURCES = $(rule_exists)
+libplugin_exists_la_LIBADD = libcherokee-base.la libcherokee-server.la
if STATIC_RULE_EXISTS
static_rule_exists_src = $(rule_exists)
@@ -207,6 +212,7 @@
libplugin_url_arg_la_LDFLAGS = $(module_ldflags)
libplugin_url_arg_la_SOURCES = $(rule_url_arg)
+libplugin_url_arg_la_LIBADD = libcherokee-base.la libcherokee-server.la
if STATIC_RULE_URL_ARG
static_rule_url_arg_src = $(rule_url_arg)
@@ -224,6 +230,7 @@
libplugin_fullpath_la_LDFLAGS = $(module_ldflags)
libplugin_fullpath_la_SOURCES = $(rule_fullpath)
+libplugin_fullpath_la_LIBADD = libcherokee-base.la libcherokee-server.la
if STATIC_RULE_FULL_PATH
static_rule_fullpath_src = $(rule_fullpath)
@@ -241,6 +248,7 @@
libplugin_bind_la_LDFLAGS = $(module_ldflags)
libplugin_bind_la_SOURCES = $(rule_bind)
+libplugin_bind_la_LIBADD = libcherokee-base.la libcherokee-server.la
if STATIC_RULE_BIND
static_rule_bind_src = $(rule_bind)
@@ -258,6 +266,7 @@
libplugin_tls_la_LDFLAGS = $(module_ldflags)
libplugin_tls_la_SOURCES = $(rule_tls)
+libplugin_tls_la_LIBADD = libcherokee-server.la
if STATIC_RULE_TLS
static_rule_tls_src = $(rule_tls)
@@ -275,6 +284,7 @@
libplugin_method_la_LDFLAGS = $(module_ldflags)
libplugin_method_la_SOURCES = $(rule_method)
+libplugin_method_la_LIBADD = libcherokee-server.la
if STATIC_RULE_METHOD
static_rule_method_src = $(rule_method)
@@ -292,6 +302,7 @@
libplugin_from_la_LDFLAGS = $(module_ldflags)
libplugin_from_la_SOURCES = $(rule_from)
+libplugin_from_la_LIBADD = libcherokee-server.la
if STATIC_RULE_FROM
static_rule_from_src = $(rule_from)
@@ -310,7 +321,7 @@
libplugin_geoip_la_LDFLAGS = $(module_ldflags)
libplugin_geoip_la_SOURCES = $(rule_geoip)
-libplugin_geoip_la_LIBADD = -lGeoIP
+libplugin_geoip_la_LIBADD = libcherokee-server.la -lGeoIP
if STATIC_RULE_HEADER
static_rule_geoip_src = $(rule_geoip)
@@ -330,6 +341,7 @@
libplugin_not_la_LDFLAGS = $(module_ldflags)
libplugin_not_la_SOURCES = $(rule_not)
+libplugin_not_la_LIBADD = libcherokee-server.la
if STATIC_RULE_NOT
static_rule_not_src = $(rule_not)
@@ -347,6 +359,7 @@
libplugin_and_la_LDFLAGS = $(module_ldflags)
libplugin_and_la_SOURCES = $(rule_and)
+libplugin_and_la_LIBADD = libcherokee-server.la
if STATIC_RULE_AND
static_rule_and_src = $(rule_and)
@@ -364,6 +377,7 @@
libplugin_or_la_LDFLAGS = $(module_ldflags)
libplugin_or_la_SOURCES = $(rule_or)
+libplugin_or_la_LIBADD = libcherokee-server.la
if STATIC_RULE_OR
static_rule_or_src = $(rule_or)
@@ -381,6 +395,7 @@
libplugin_v_or_la_LDFLAGS = $(module_ldflags)
libplugin_v_or_la_SOURCES = $(vrule_or)
+libplugin_v_or_la_LIBADD = libcherokee-server.la
if STATIC_VRULE_OR
static_vrule_or_src = $(vrule_or)
@@ -398,6 +413,7 @@
libplugin_wildcard_la_LDFLAGS = $(module_ldflags)
libplugin_wildcard_la_SOURCES = $(vrule_wildcard)
+libplugin_wildcard_la_LIBADD = libcherokee-server.la
if STATIC_VRULE_WILDCARD
static_vrule_wildcard_src = $(vrule_wildcard)
@@ -415,6 +431,7 @@
libplugin_rehost_la_LDFLAGS = $(module_ldflags)
libplugin_rehost_la_SOURCES = $(vrule_rehost)
+libplugin_rehost_la_LIBADD = libcherokee-server.la
if STATIC_VRULE_REHOST
static_vrule_rehost_src = $(vrule_rehost)
@@ -432,6 +449,7 @@
libplugin_target_ip_la_LDFLAGS = $(module_ldflags)
libplugin_target_ip_la_SOURCES = $(vrule_target_ip)
+libplugin_target_ip_la_LIBADD = libcherokee-server.la
if STATIC_VRULE_TARGET_IP
static_vrule_target_ip_src = $(vrule_target_ip)
@@ -454,6 +472,7 @@
libplugin_rrd_la_LDFLAGS = $(module_ldflags)
libplugin_rrd_la_SOURCES = $(collector_rrd)
+libplugin_rrd_la_LIBADD = libcherokee-server.la
if STATIC_COLLECTOR_RRD
static_collector_rrd_src = $(collector_rrd)
@@ -471,6 +490,7 @@
libplugin_evhost_la_LDFLAGS = $(module_ldflags)
libplugin_evhost_la_SOURCES = $(gen_evhost)
+libplugin_evhost_la_LIBADD = libcherokee-server.la
if STATIC_GEN_EVHOST
static_gen_evhost_src = $(gen_evhost)
@@ -488,6 +508,7 @@
libplugin_post_track_la_LDFLAGS = $(module_ldflags)
libplugin_post_track_la_SOURCES = $(post_track)
+libplugin_post_track_la_LIBADD = libcherokee-server.la
if STATIC_POST_TRACK
static_post_track_src = $(post_track)
@@ -505,6 +526,7 @@
libplugin_post_report_la_LDFLAGS = $(module_ldflags)
libplugin_post_report_la_SOURCES = $(handler_post_report)
+libplugin_post_report_la_LIBADD = libcherokee-server.la libplugin_post_track.la
if STATIC_POST_REPORT
static_handler_post_report_src = $(handler_post_report)
@@ -523,6 +545,7 @@
libplugin_server_info_la_LDFLAGS = $(module_ldflags)
libplugin_server_info_la_SOURCES = $(handler_server_info)
+libplugin_server_info_la_LIBADD = libcherokee-server.la
if STATIC_HANDLER_SERVER_INFO
static_handler_server_info_src = $(handler_server_info)
@@ -540,6 +563,7 @@
libplugin_file_la_LDFLAGS = $(module_ldflags)
libplugin_file_la_SOURCES = $(handler_file)
+libplugin_file_la_LIBADD = libcherokee-server.la
if STATIC_HANDLER_FILE
static_handler_file_src = $(handler_file)
@@ -557,6 +581,7 @@
libplugin_dirlist_la_LDFLAGS = $(module_ldflags)
libplugin_dirlist_la_SOURCES = $(handler_dirlist)
+libplugin_dirlist_la_LIBADD = libcherokee-server.la
if STATIC_HANDLER_DIRLIST
static_handler_dirlist_src = $(handler_dirlist)
@@ -580,6 +605,7 @@
libplugin_render_rrd_la_LDFLAGS = $(module_ldflags)
libplugin_render_rrd_la_SOURCES = $(handler_render_rrd) $(handler_file)
+libplugin_render_rrd_la_LIBADD = libcherokee-server.la
if STATIC_HANDLER_RENDER_RRD
static_handler_render_rrd_src = $(handler_render_rrd)
@@ -602,6 +628,7 @@
libplugin_cgi_la_LDFLAGS = $(module_ldflags)
libplugin_cgi_la_SOURCES = $(handler_cgi) $(handler_file)
+libplugin_cgi_la_LIBADD = libcherokee-server.la
if STATIC_HANDLER_CGI
static_handler_cgi_src = $(handler_cgi)
@@ -624,6 +651,7 @@
libplugin_scgi_la_LDFLAGS = $(module_ldflags)
libplugin_scgi_la_SOURCES = $(handler_scgi) $(handler_file)
+libplugin_scgi_la_LIBADD = libcherokee-server.la
if STATIC_HANDLER_SCGI
static_handler_scgi_src = $(handler_scgi)
@@ -647,6 +675,7 @@
libplugin_fcgi_la_LDFLAGS = $(module_ldflags)
libplugin_fcgi_la_SOURCES = $(handler_fcgi) $(handler_file)
+libplugin_fcgi_la_LIBADD = libcherokee-server.la
if STATIC_HANDLER_FCGI
static_handler_fcgi_src = $(handler_fcgi)
@@ -669,6 +698,7 @@
libplugin_uwsgi_la_LDFLAGS = $(module_ldflags)
libplugin_uwsgi_la_SOURCES = $(handler_uwsgi) $(handler_file)
+libplugin_uwsgi_la_LIBADD = libcherokee-server.la
if STATIC_HANDLER_UWSGI
static_handler_uwsgi_src = $(handler_uwsgi)
@@ -686,6 +716,7 @@
libplugin_redir_la_LDFLAGS = $(module_ldflags)
libplugin_redir_la_SOURCES = $(handler_redir)
+libplugin_redir_la_LIBADD = libcherokee-server.la
if STATIC_HANDLER_REDIR
static_handler_redir_src = $(handler_redir)
@@ -702,7 +733,8 @@
handler_error_redir.h
libplugin_error_redir_la_LDFLAGS = $(module_ldflags)
-libplugin_error_redir_la_SOURCES = $(handler_error_redir)
+libplugin_error_redir_la_SOURCES = $(handler_error_redir) $(handler_redir)
+libplugin_error_redir_la_LIBADD = libcherokee-server.la
if STATIC_HANDLER_ERROR_REDIR
static_handler_error_redir_src = $(handler_error_redir)
@@ -722,6 +754,7 @@
libplugin_error_nn_la_LDFLAGS = $(module_ldflags)
libplugin_error_nn_la_SOURCES = $(handler_error_nn)
+libplugin_error_nn_la_LIBADD = libcherokee-server.la
if STATIC_HANDLER_ERROR_NN
static_handler_error_nn_src = $(handler_error_nn)
@@ -738,7 +771,8 @@
handler_common.h
libplugin_common_la_LDFLAGS = $(module_ldflags)
-libplugin_common_la_SOURCES = $(handler_common)
+libplugin_common_la_SOURCES = $(handler_common) $(handler_dirlist) $(handler_file)
+libplugin_common_la_LIBADD = libcherokee-server.la
if STATIC_HANDLER_COMMON
static_handler_common_src = $(handler_common)
@@ -758,6 +792,7 @@
libplugin_proxy_la_LDFLAGS = $(module_ldflags)
libplugin_proxy_la_SOURCES = $(handler_proxy)
+libplugin_proxy_la_LIBADD = libcherokee-server.la
if STATIC_HANDLER_PROXY
static_handler_proxy_src = $(handler_proxy)
@@ -777,6 +812,7 @@
libplugin_ssi_la_LDFLAGS = $(module_ldflags)
libplugin_ssi_la_SOURCES = $(handler_ssi)
+libplugin_ssi_la_LIBADD = libcherokee-server.la
if STATIC_HANDLER_SSI
static_handler_ssi_src = $(handler_ssi)
@@ -793,7 +829,8 @@
handler_secdownload.h
libplugin_secdownload_la_LDFLAGS = $(module_ldflags)
-libplugin_secdownload_la_SOURCES = $(handler_secdownload)
+libplugin_secdownload_la_SOURCES = $(handler_secdownload) $(handler_file)
+libplugin_secdownload_la_LIBADD = libcherokee-server.la
if STATIC_HANDLER_SECDOWNLOAD
static_handler_secdownload_src = $(handler_secdownload)
@@ -811,6 +848,7 @@
libplugin_empty_gif_la_LDFLAGS = $(module_ldflags)
libplugin_empty_gif_la_SOURCES = $(handler_empty_gif)
+libplugin_empty_gif_la_LIBADD = libcherokee-server.la
if STATIC_HANDLER_EMPTY_GIF
static_handler_empty_gif_src = $(handler_empty_gif)
@@ -828,6 +866,7 @@
libplugin_drop_la_LDFLAGS = $(module_ldflags)
libplugin_drop_la_SOURCES = $(handler_drop)
+libplugin_drop_la_LIBADD = libcherokee-server.la
if STATIC_HANDLER_DROP
static_handler_drop_src = $(handler_drop)
@@ -845,8 +884,8 @@
handler_streaming.h
libplugin_streaming_la_LDFLAGS = $(module_ldflags)
-libplugin_streaming_la_SOURCES = $(handler_streaming)
-libplugin_streaming_la_LIBADD = $(FFMPEG_LIBS)
+libplugin_streaming_la_SOURCES = $(handler_streaming) $(handler_file)
+libplugin_streaming_la_LIBADD = $(FFMPEG_LIBS) libcherokee-server.la
libplugin_streaming_la_CFLAGS = $(FFMPEG_CFLAGS)
if HAVE_FFMPEG
@@ -870,6 +909,7 @@
libplugin_dbslayer_la_LDFLAGS = $(module_ldflags) $(MYSQL_LDFLAGS)
libplugin_dbslayer_la_SOURCES = $(handler_dbslayer)
libplugin_dbslayer_la_CFLAGS = $(MYSQL_CFLAGS)
+libplugin_dbslayer_la_LIBADD = libcherokee-server.la
if HAVE_MYSQL
if STATIC_HANDLER_DBSLAYER
@@ -891,7 +931,7 @@
libplugin_custom_error_la_LDFLAGS = $(module_ldflags)
libplugin_custom_error_la_SOURCES = $(handler_custom_error)
-libplugin_custom_error_la_LIBADD = libcherokee-client.la
+libplugin_custom_error_la_LIBADD = libcherokee-base.la libcherokee-client.la libcherokee-server.la
if STATIC_HANDLER_CUSTOM_ERROR
static_handler_custom_error_src = $(handler_custom_error)
@@ -911,7 +951,7 @@
libplugin_admin_la_LDFLAGS = $(module_ldflags)
libplugin_admin_la_SOURCES = $(handler_admin)
-libplugin_admin_la_LIBADD = libcherokee-client.la
+libplugin_admin_la_LIBADD = libcherokee-client.la libcherokee-server.la
if STATIC_HANDLER_ADMIN
static_handler_admin_src = $(handler_admin)
@@ -929,6 +969,7 @@
libplugin_gzip_la_LDFLAGS = $(module_ldflags)
libplugin_gzip_la_SOURCES = $(encoder_gzip)
+libplugin_gzip_la_LIBADD = libcherokee-server.la
if STATIC_ENCODER_GZIP
static_encoder_gzip_src = $(encoder_gzip)
@@ -946,6 +987,7 @@
libplugin_deflate_la_LDFLAGS = $(module_ldflags)
libplugin_deflate_la_SOURCES = $(encoder_deflate)
+libplugin_deflate_la_LIBADD = libcherokee-server.la -lz
if STATIC_ENCODER_DEFLATE
static_encoder_deflate_src = $(encoder_deflate)
@@ -963,6 +1005,7 @@
libplugin_custom_la_LDFLAGS = $(module_ldflags)
libplugin_custom_la_SOURCES = $(logger_custom)
+libplugin_custom_la_LIBADD = libcherokee-server.la
if STATIC_LOGGER_CUSTOM
static_logger_custom_src = $(logger_custom)
@@ -980,6 +1023,7 @@
libplugin_ncsa_la_LDFLAGS = $(module_ldflags)
libplugin_ncsa_la_SOURCES = $(logger_ncsa)
+libplugin_ncsa_la_LIBADD = libcherokee-server.la
if STATIC_LOGGER_NCSA
static_logger_ncsa_src = $(logger_ncsa)
@@ -996,7 +1040,8 @@
logger_combined.c
libplugin_combined_la_LDFLAGS = $(module_ldflags)
-libplugin_combined_la_SOURCES = $(logger_combined)
+libplugin_combined_la_SOURCES = $(logger_combined) $(logger_ncsa)
+libplugin_combined_la_LIBADD = libcherokee-server.la
if STATIC_LOGGER_COMBINED
static_logger_combined_src = $(logger_combined)
@@ -1062,7 +1107,7 @@
libplugin_htpasswd_la_LDFLAGS = $(module_ldflags)
libplugin_htpasswd_la_SOURCES = $(validator_htpasswd)
-libplugin_htpasswd_la_LIBADD = $(CRYPT_LIBS)
+libplugin_htpasswd_la_LIBADD = $(CRYPT_LIBS) libcherokee-server.la
libplugin_htpasswd_la_CFLAGS = $(CRYPT_CFLAGS)
if STATIC_VALIDATOR_HTPASSWD
@@ -1088,6 +1133,7 @@
libplugin_plain_la_LDFLAGS = $(module_ldflags)
libplugin_plain_la_SOURCES = $(validator_plain)
+libplugin_plain_la_LIBADD = libcherokee-server.la
if STATIC_VALIDATOR_PLAIN
static_validator_plain_src = $(validator_plain)
@@ -1110,6 +1156,7 @@
libplugin_htdigest_la_LDFLAGS = $(module_ldflags)
libplugin_htdigest_la_SOURCES = $(validator_htdigest)
+libplugin_htdigest_la_LIBADD = libcherokee-server.la
if STATIC_VALIDATOR_HTDIGEST
static_validator_htdigest_src = $(validator_htdigest)
@@ -1127,6 +1174,7 @@
libplugin_authlist_la_LDFLAGS = $(module_ldflags)
libplugin_authlist_la_SOURCES = $(validator_authlist)
+libplugin_authlist_la_LIBADD = libcherokee-server.la
if STATIC_VALIDATOR_AUTHLIST
static_validator_authlist_src = $(validator_authlist)
@@ -1145,6 +1193,7 @@
libplugin_mysql_la_LDFLAGS = $(module_ldflags) $(MYSQL_LDFLAGS)
libplugin_mysql_la_SOURCES = $(validator_mysql)
libplugin_mysql_la_CFLAGS = $(MYSQL_CFLAGS)
+libplugin_mysql_la_LIBADD = libcherokee-server.la
if HAVE_MYSQL
if STATIC_VALIDATOR_MYSQL
@@ -1173,6 +1222,7 @@
libplugin_libssl_la_LDFLAGS = $(module_ldflags) $(LIBSSL_LIBS)
libplugin_libssl_la_SOURCES = $(cryptor_libssl)
libplugin_libssl_la_CFLAGS = $(LIBSSL_CFLAGS)
+libplugin_libssl_la_LIBADD = libcherokee-server.la
if USE_OPENSSL
if STATIC_CRYPTOR_LIBSSL
@@ -1194,6 +1244,7 @@
libplugin_round_robin_la_LDFLAGS = $(module_ldflags)
libplugin_round_robin_la_SOURCES = $(balancer_round_robin)
+libplugin_round_robin_la_LIBADD = libcherokee-server.la
if STATIC_BALANCER_ROUND_ROBIN
static_balancer_round_robin_src = $(balancer_round_robin)
@@ -1211,6 +1262,7 @@
libplugin_ip_hash_la_LDFLAGS = $(module_ldflags)
libplugin_ip_hash_la_SOURCES = $(balancer_ip_hash)
+libplugin_ip_hash_la_LIBADD = libcherokee-server.la
if STATIC_BALANCER_IP_HASH
static_balancer_ip_hash_src = $(balancer_ip_hash)
@@ -1228,6 +1280,7 @@
libplugin_failover_la_LDFLAGS = $(module_ldflags)
libplugin_failover_la_SOURCES = $(balancer_failover)
+libplugin_failover_la_LIBADD = libcherokee-server.la
if STATIC_BALANCER_FAILOVER
static_balancer_failover_src = $(balancer_failover)
|