Blame patches/cherokee_pre.local.patch

2baa17
diff -ru webserver.orig/cherokee/Makefile.am webserver/cherokee/Makefile.am
2baa17
--- webserver.orig/cherokee/Makefile.am	2020-09-24 20:16:03.353687922 +0200
2baa17
+++ webserver/cherokee/Makefile.am	2020-09-24 23:10:46.335528123 +0200
2baa17
@@ -122,6 +122,7 @@
2baa17
 
2baa17
 libplugin_directory_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_directory_la_SOURCES = $(rule_directory)
2baa17
+libplugin_directory_la_LIBADD  = libcherokee-base.la libcherokee-server.la
2baa17
 
2baa17
 if STATIC_RULE_DIRECTORY
2baa17
 static_rule_directory_src = $(rule_directory)
2baa17
@@ -139,6 +140,7 @@
2baa17
 
2baa17
 libplugin_extensions_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_extensions_la_SOURCES = $(rule_extensions)
2baa17
+libplugin_extensions_la_LIBADD  = libcherokee-base.la libcherokee-server.la
2baa17
 
2baa17
 if STATIC_RULE_EXTENSIONS
2baa17
 static_rule_extensions_src = $(rule_extensions)
2baa17
@@ -156,6 +158,7 @@
2baa17
 
2baa17
 libplugin_request_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_request_la_SOURCES = $(rule_request)
2baa17
+libplugin_request_la_LIBADD  = libcherokee-base.la libcherokee-server.la
2baa17
 
2baa17
 if STATIC_RULE_REQUEST
2baa17
 static_rule_request_src = $(rule_request)
2baa17
@@ -173,6 +176,7 @@
2baa17
 
2baa17
 libplugin_header_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_header_la_SOURCES = $(rule_header)
2baa17
+libplugin_header_la_LIBADD  = libcherokee-base.la libcherokee-server.la
2baa17
 
2baa17
 if STATIC_RULE_HEADER
2baa17
 static_rule_header_src = $(rule_header)
2baa17
@@ -190,6 +194,7 @@
2baa17
 
2baa17
 libplugin_exists_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_exists_la_SOURCES = $(rule_exists)
2baa17
+libplugin_exists_la_LIBADD  = libcherokee-base.la libcherokee-server.la
2baa17
 
2baa17
 if STATIC_RULE_EXISTS
2baa17
 static_rule_exists_src = $(rule_exists)
2baa17
@@ -207,6 +212,7 @@
2baa17
 
2baa17
 libplugin_url_arg_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_url_arg_la_SOURCES = $(rule_url_arg)
2baa17
+libplugin_url_arg_la_LIBADD  = libcherokee-base.la libcherokee-server.la
2baa17
 
2baa17
 if STATIC_RULE_URL_ARG
2baa17
 static_rule_url_arg_src = $(rule_url_arg)
2baa17
@@ -224,6 +230,7 @@
2baa17
 
2baa17
 libplugin_fullpath_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_fullpath_la_SOURCES = $(rule_fullpath)
2baa17
+libplugin_fullpath_la_LIBADD  = libcherokee-base.la libcherokee-server.la
2baa17
 
2baa17
 if STATIC_RULE_FULL_PATH
2baa17
 static_rule_fullpath_src = $(rule_fullpath)
2baa17
@@ -241,6 +248,7 @@
2baa17
 
2baa17
 libplugin_bind_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_bind_la_SOURCES = $(rule_bind)
2baa17
+libplugin_bind_la_LIBADD  = libcherokee-base.la libcherokee-server.la
2baa17
 
2baa17
 if STATIC_RULE_BIND
2baa17
 static_rule_bind_src = $(rule_bind)
2baa17
@@ -258,6 +266,7 @@
2baa17
 
2baa17
 libplugin_tls_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_tls_la_SOURCES = $(rule_tls)
2baa17
+libplugin_tls_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_RULE_TLS
2baa17
 static_rule_tls_src = $(rule_tls)
2baa17
@@ -275,6 +284,7 @@
2baa17
 
2baa17
 libplugin_method_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_method_la_SOURCES = $(rule_method)
2baa17
+libplugin_method_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_RULE_METHOD
2baa17
 static_rule_method_src = $(rule_method)
2baa17
@@ -292,6 +302,7 @@
2baa17
 
2baa17
 libplugin_from_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_from_la_SOURCES = $(rule_from)
2baa17
+libplugin_from_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_RULE_FROM
2baa17
 static_rule_from_src = $(rule_from)
2baa17
@@ -310,7 +321,7 @@
2baa17
 
2baa17
 libplugin_geoip_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_geoip_la_SOURCES = $(rule_geoip)
2baa17
-libplugin_geoip_la_LIBADD  = -lGeoIP
2baa17
+libplugin_geoip_la_LIBADD  = libcherokee-server.la -lGeoIP
2baa17
 
2baa17
 if STATIC_RULE_HEADER
2baa17
 static_rule_geoip_src = $(rule_geoip)
2baa17
@@ -330,6 +341,7 @@
2baa17
 
2baa17
 libplugin_not_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_not_la_SOURCES = $(rule_not)
2baa17
+libplugin_not_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_RULE_NOT
2baa17
 static_rule_not_src = $(rule_not)
2baa17
@@ -347,6 +359,7 @@
2baa17
 
2baa17
 libplugin_and_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_and_la_SOURCES = $(rule_and)
2baa17
+libplugin_and_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_RULE_AND
2baa17
 static_rule_and_src = $(rule_and)
2baa17
@@ -364,6 +377,7 @@
2baa17
 
2baa17
 libplugin_or_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_or_la_SOURCES = $(rule_or)
2baa17
+libplugin_or_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_RULE_OR
2baa17
 static_rule_or_src = $(rule_or)
2baa17
@@ -381,6 +395,7 @@
2baa17
 
2baa17
 libplugin_v_or_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_v_or_la_SOURCES = $(vrule_or)
2baa17
+libplugin_v_or_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_VRULE_OR
2baa17
 static_vrule_or_src = $(vrule_or)
2baa17
@@ -398,6 +413,7 @@
2baa17
 
2baa17
 libplugin_wildcard_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_wildcard_la_SOURCES = $(vrule_wildcard)
2baa17
+libplugin_wildcard_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_VRULE_WILDCARD
2baa17
 static_vrule_wildcard_src = $(vrule_wildcard)
2baa17
@@ -415,6 +431,7 @@
2baa17
 
2baa17
 libplugin_rehost_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_rehost_la_SOURCES = $(vrule_rehost)
2baa17
+libplugin_rehost_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_VRULE_REHOST
2baa17
 static_vrule_rehost_src = $(vrule_rehost)
2baa17
@@ -432,6 +449,7 @@
2baa17
 
2baa17
 libplugin_target_ip_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_target_ip_la_SOURCES = $(vrule_target_ip)
2baa17
+libplugin_target_ip_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_VRULE_TARGET_IP
2baa17
 static_vrule_target_ip_src = $(vrule_target_ip)
2baa17
@@ -454,6 +472,7 @@
2baa17
 
2baa17
 libplugin_rrd_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_rrd_la_SOURCES = $(collector_rrd)
2baa17
+libplugin_rrd_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_COLLECTOR_RRD
2baa17
 static_collector_rrd_src = $(collector_rrd)
2baa17
@@ -471,6 +490,7 @@
2baa17
 
2baa17
 libplugin_evhost_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_evhost_la_SOURCES = $(gen_evhost)
2baa17
+libplugin_evhost_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_GEN_EVHOST
2baa17
 static_gen_evhost_src = $(gen_evhost)
2baa17
@@ -488,6 +508,7 @@
2baa17
 
2baa17
 libplugin_post_track_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_post_track_la_SOURCES = $(post_track)
2baa17
+libplugin_post_track_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_POST_TRACK
2baa17
 static_post_track_src = $(post_track)
2baa17
@@ -505,6 +526,7 @@
2baa17
 
2baa17
 libplugin_post_report_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_post_report_la_SOURCES = $(handler_post_report)
2baa17
+libplugin_post_report_la_LIBADD  = libcherokee-server.la libplugin_post_track.la
2baa17
 
2baa17
 if STATIC_POST_REPORT
2baa17
 static_handler_post_report_src = $(handler_post_report)
2baa17
@@ -523,6 +545,7 @@
2baa17
 
2baa17
 libplugin_server_info_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_server_info_la_SOURCES = $(handler_server_info)
2baa17
+libplugin_server_info_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_HANDLER_SERVER_INFO
2baa17
 static_handler_server_info_src = $(handler_server_info)
2baa17
@@ -540,6 +563,7 @@
2baa17
 
2baa17
 libplugin_file_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_file_la_SOURCES = $(handler_file)
2baa17
+libplugin_file_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_HANDLER_FILE
2baa17
 static_handler_file_src = $(handler_file)
2baa17
@@ -557,6 +581,7 @@
2baa17
 
2baa17
 libplugin_dirlist_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_dirlist_la_SOURCES = $(handler_dirlist)
2baa17
+libplugin_dirlist_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_HANDLER_DIRLIST
2baa17
 static_handler_dirlist_src = $(handler_dirlist)
2baa17
@@ -580,6 +605,7 @@
2baa17
 
2baa17
 libplugin_render_rrd_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_render_rrd_la_SOURCES = $(handler_render_rrd) $(handler_file)
2baa17
+libplugin_render_rrd_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_HANDLER_RENDER_RRD
2baa17
 static_handler_render_rrd_src = $(handler_render_rrd)
2baa17
@@ -602,6 +628,7 @@
2baa17
 
2baa17
 libplugin_cgi_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_cgi_la_SOURCES = $(handler_cgi) $(handler_file)
2baa17
+libplugin_cgi_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_HANDLER_CGI
2baa17
 static_handler_cgi_src = $(handler_cgi)
2baa17
@@ -624,6 +651,7 @@
2baa17
 
2baa17
 libplugin_scgi_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_scgi_la_SOURCES = $(handler_scgi) $(handler_file)
2baa17
+libplugin_scgi_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_HANDLER_SCGI
2baa17
 static_handler_scgi_src = $(handler_scgi)
2baa17
@@ -647,6 +675,7 @@
2baa17
 
2baa17
 libplugin_fcgi_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_fcgi_la_SOURCES = $(handler_fcgi) $(handler_file)
2baa17
+libplugin_fcgi_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_HANDLER_FCGI
2baa17
 static_handler_fcgi_src = $(handler_fcgi)
2baa17
@@ -669,6 +698,7 @@
2baa17
 
2baa17
 libplugin_uwsgi_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_uwsgi_la_SOURCES = $(handler_uwsgi) $(handler_file)
2baa17
+libplugin_uwsgi_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_HANDLER_UWSGI
2baa17
 static_handler_uwsgi_src = $(handler_uwsgi)
2baa17
@@ -686,6 +716,7 @@
2baa17
 
2baa17
 libplugin_redir_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_redir_la_SOURCES = $(handler_redir)
2baa17
+libplugin_redir_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_HANDLER_REDIR
2baa17
 static_handler_redir_src = $(handler_redir)
2baa17
@@ -702,7 +733,8 @@
2baa17
 handler_error_redir.h
2baa17
 
2baa17
 libplugin_error_redir_la_LDFLAGS = $(module_ldflags)
2baa17
-libplugin_error_redir_la_SOURCES = $(handler_error_redir)
2baa17
+libplugin_error_redir_la_SOURCES = $(handler_error_redir) $(handler_redir)
2baa17
+libplugin_error_redir_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_HANDLER_ERROR_REDIR
2baa17
 static_handler_error_redir_src = $(handler_error_redir)
2baa17
@@ -722,6 +754,7 @@
2baa17
 
2baa17
 libplugin_error_nn_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_error_nn_la_SOURCES = $(handler_error_nn)
2baa17
+libplugin_error_nn_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_HANDLER_ERROR_NN
2baa17
 static_handler_error_nn_src = $(handler_error_nn)
2baa17
@@ -738,7 +771,8 @@
2baa17
 handler_common.h
2baa17
 
2baa17
 libplugin_common_la_LDFLAGS = $(module_ldflags)
2baa17
-libplugin_common_la_SOURCES = $(handler_common)
2baa17
+libplugin_common_la_SOURCES = $(handler_common) $(handler_dirlist) $(handler_file)
2baa17
+libplugin_common_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_HANDLER_COMMON
2baa17
 static_handler_common_src = $(handler_common)
2baa17
@@ -758,6 +792,7 @@
2baa17
 
2baa17
 libplugin_proxy_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_proxy_la_SOURCES = $(handler_proxy)
2baa17
+libplugin_proxy_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_HANDLER_PROXY
2baa17
 static_handler_proxy_src = $(handler_proxy)
2baa17
@@ -777,6 +812,7 @@
2baa17
 
2baa17
 libplugin_ssi_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_ssi_la_SOURCES = $(handler_ssi)
2baa17
+libplugin_ssi_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_HANDLER_SSI
2baa17
 static_handler_ssi_src = $(handler_ssi)
2baa17
@@ -793,7 +829,8 @@
2baa17
 handler_secdownload.h
2baa17
 
2baa17
 libplugin_secdownload_la_LDFLAGS = $(module_ldflags)
2baa17
-libplugin_secdownload_la_SOURCES = $(handler_secdownload)
2baa17
+libplugin_secdownload_la_SOURCES = $(handler_secdownload) $(handler_file)
2baa17
+libplugin_secdownload_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_HANDLER_SECDOWNLOAD
2baa17
 static_handler_secdownload_src = $(handler_secdownload)
2baa17
@@ -811,6 +848,7 @@
2baa17
 
2baa17
 libplugin_empty_gif_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_empty_gif_la_SOURCES = $(handler_empty_gif)
2baa17
+libplugin_empty_gif_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_HANDLER_EMPTY_GIF
2baa17
 static_handler_empty_gif_src = $(handler_empty_gif)
2baa17
@@ -828,6 +866,7 @@
2baa17
 
2baa17
 libplugin_drop_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_drop_la_SOURCES = $(handler_drop)
2baa17
+libplugin_drop_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_HANDLER_DROP
2baa17
 static_handler_drop_src = $(handler_drop)
2baa17
@@ -845,8 +884,8 @@
2baa17
 handler_streaming.h
2baa17
 
2baa17
 libplugin_streaming_la_LDFLAGS = $(module_ldflags)
2baa17
-libplugin_streaming_la_SOURCES = $(handler_streaming)
2baa17
-libplugin_streaming_la_LIBADD  = $(FFMPEG_LIBS)
2baa17
+libplugin_streaming_la_SOURCES = $(handler_streaming) $(handler_file)
2baa17
+libplugin_streaming_la_LIBADD  = $(FFMPEG_LIBS) libcherokee-server.la
2baa17
 libplugin_streaming_la_CFLAGS  = $(FFMPEG_CFLAGS)
2baa17
 
2baa17
 if HAVE_FFMPEG
2baa17
@@ -870,6 +909,7 @@
2baa17
 libplugin_dbslayer_la_LDFLAGS = $(module_ldflags) $(MYSQL_LDFLAGS)
2baa17
 libplugin_dbslayer_la_SOURCES = $(handler_dbslayer)
2baa17
 libplugin_dbslayer_la_CFLAGS  = $(MYSQL_CFLAGS)
2baa17
+libplugin_dbslayer_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if HAVE_MYSQL
2baa17
 if STATIC_HANDLER_DBSLAYER
2baa17
@@ -891,7 +931,7 @@
2baa17
 
2baa17
 libplugin_custom_error_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_custom_error_la_SOURCES = $(handler_custom_error)
2baa17
-libplugin_custom_error_la_LIBADD  = libcherokee-client.la
2baa17
+libplugin_custom_error_la_LIBADD  = libcherokee-base.la libcherokee-client.la libcherokee-server.la
2baa17
 
2baa17
 if STATIC_HANDLER_CUSTOM_ERROR
2baa17
 static_handler_custom_error_src = $(handler_custom_error)
2baa17
@@ -911,7 +951,7 @@
2baa17
 
2baa17
 libplugin_admin_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_admin_la_SOURCES = $(handler_admin)
2baa17
-libplugin_admin_la_LIBADD  = libcherokee-client.la
2baa17
+libplugin_admin_la_LIBADD  = libcherokee-client.la libcherokee-server.la
2baa17
 
2baa17
 if STATIC_HANDLER_ADMIN
2baa17
 static_handler_admin_src = $(handler_admin)
2baa17
@@ -929,6 +969,7 @@
2baa17
 
2baa17
 libplugin_gzip_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_gzip_la_SOURCES = $(encoder_gzip)
2baa17
+libplugin_gzip_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_ENCODER_GZIP
2baa17
 static_encoder_gzip_src = $(encoder_gzip)
2baa17
@@ -946,6 +987,7 @@
2baa17
 
2baa17
 libplugin_deflate_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_deflate_la_SOURCES = $(encoder_deflate)
2baa17
+libplugin_deflate_la_LIBADD  = libcherokee-server.la -lz
2baa17
 
2baa17
 if STATIC_ENCODER_DEFLATE
2baa17
 static_encoder_deflate_src = $(encoder_deflate)
2baa17
@@ -963,6 +1005,7 @@
2baa17
 
2baa17
 libplugin_custom_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_custom_la_SOURCES = $(logger_custom)
2baa17
+libplugin_custom_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_LOGGER_CUSTOM
2baa17
 static_logger_custom_src = $(logger_custom)
2baa17
@@ -980,6 +1023,7 @@
2baa17
 
2baa17
 libplugin_ncsa_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_ncsa_la_SOURCES = $(logger_ncsa)
2baa17
+libplugin_ncsa_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_LOGGER_NCSA
2baa17
 static_logger_ncsa_src = $(logger_ncsa)
2baa17
@@ -996,7 +1040,8 @@
2baa17
 logger_combined.c
2baa17
 
2baa17
 libplugin_combined_la_LDFLAGS = $(module_ldflags)
2baa17
-libplugin_combined_la_SOURCES = $(logger_combined)
2baa17
+libplugin_combined_la_SOURCES = $(logger_combined) $(logger_ncsa)
2baa17
+libplugin_combined_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_LOGGER_COMBINED
2baa17
 static_logger_combined_src = $(logger_combined)
2baa17
@@ -1062,7 +1107,7 @@
2baa17
 
2baa17
 libplugin_htpasswd_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_htpasswd_la_SOURCES = $(validator_htpasswd)
2baa17
-libplugin_htpasswd_la_LIBADD  = $(CRYPT_LIBS)
2baa17
+libplugin_htpasswd_la_LIBADD  = $(CRYPT_LIBS) libcherokee-server.la
2baa17
 libplugin_htpasswd_la_CFLAGS  = $(CRYPT_CFLAGS)
2baa17
 
2baa17
 if STATIC_VALIDATOR_HTPASSWD
2baa17
@@ -1088,6 +1133,7 @@
2baa17
 
2baa17
 libplugin_plain_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_plain_la_SOURCES = $(validator_plain)
2baa17
+libplugin_plain_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_VALIDATOR_PLAIN
2baa17
 static_validator_plain_src = $(validator_plain)
2baa17
@@ -1110,6 +1156,7 @@
2baa17
 
2baa17
 libplugin_htdigest_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_htdigest_la_SOURCES = $(validator_htdigest)
2baa17
+libplugin_htdigest_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_VALIDATOR_HTDIGEST
2baa17
 static_validator_htdigest_src = $(validator_htdigest)
2baa17
@@ -1127,6 +1174,7 @@
2baa17
 
2baa17
 libplugin_authlist_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_authlist_la_SOURCES = $(validator_authlist)
2baa17
+libplugin_authlist_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_VALIDATOR_AUTHLIST
2baa17
 static_validator_authlist_src = $(validator_authlist)
2baa17
@@ -1145,6 +1193,7 @@
2baa17
 libplugin_mysql_la_LDFLAGS = $(module_ldflags) $(MYSQL_LDFLAGS)
2baa17
 libplugin_mysql_la_SOURCES = $(validator_mysql)
2baa17
 libplugin_mysql_la_CFLAGS  = $(MYSQL_CFLAGS)
2baa17
+libplugin_mysql_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if HAVE_MYSQL
2baa17
 if STATIC_VALIDATOR_MYSQL
2baa17
@@ -1173,6 +1222,7 @@
2baa17
 libplugin_libssl_la_LDFLAGS = $(module_ldflags) $(LIBSSL_LIBS)
2baa17
 libplugin_libssl_la_SOURCES = $(cryptor_libssl)
2baa17
 libplugin_libssl_la_CFLAGS  = $(LIBSSL_CFLAGS)
2baa17
+libplugin_libssl_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if USE_OPENSSL
2baa17
 if STATIC_CRYPTOR_LIBSSL
2baa17
@@ -1194,6 +1244,7 @@
2baa17
 
2baa17
 libplugin_round_robin_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_round_robin_la_SOURCES = $(balancer_round_robin)
2baa17
+libplugin_round_robin_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_BALANCER_ROUND_ROBIN
2baa17
 static_balancer_round_robin_src = $(balancer_round_robin)
2baa17
@@ -1211,6 +1262,7 @@
2baa17
 
2baa17
 libplugin_ip_hash_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_ip_hash_la_SOURCES = $(balancer_ip_hash)
2baa17
+libplugin_ip_hash_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_BALANCER_IP_HASH
2baa17
 static_balancer_ip_hash_src = $(balancer_ip_hash)
2baa17
@@ -1228,6 +1280,7 @@
2baa17
 
2baa17
 libplugin_failover_la_LDFLAGS = $(module_ldflags)
2baa17
 libplugin_failover_la_SOURCES = $(balancer_failover)
2baa17
+libplugin_failover_la_LIBADD  = libcherokee-server.la
2baa17
 
2baa17
 if STATIC_BALANCER_FAILOVER
2baa17
 static_balancer_failover_src = $(balancer_failover)