BUILD: makefile: add an option to enable or disable FCGI (USE_FCGI) · haproxy/haproxy@3939dc0 · GitHub
Skip to content

Commit 3939dc0

Browse files
committed
BUILD: makefile: add an option to enable or disable FCGI (USE_FCGI)
USE_FCGI is enabled by default and allows to disable FCGI when forced to zero. It saves roughly 75kB on the executable.
1 parent 382a495 commit 3939dc0

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

‎Makefile‎

Lines changed: 11 additions & 3 deletions

‎src/cache.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,10 @@ cache_store_check(struct proxy *px, struct flt_conf *fconf)
634634
}
635635
else if (f->id == http_comp_req_flt_id || f->id == http_comp_res_flt_id)
636636
comp = 1;
637+
#if defined(USE_FCGI)
637638
else if (f->id == fcgi_flt_id)
638639
continue;
640+
#endif
639641
else if ((f->id != fconf->id) && (cconf->flags & CACHE_FLT_F_IMPLICIT_DECL)) {
640642
/* Implicit declaration is only allowed with the
641643
* compression and fcgi. For other filters, an implicit

‎src/flt_http_comp.c‎

Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)