]> git.kaiwu.me - haproxy.git/commit
BUILD: makefile: add a new generic target "tiny" master
authorWilly Tarreau <w@1wt.eu>
Thu, 21 May 2026 07:26:03 +0000 (09:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 3 Jul 2026 14:33:27 +0000 (16:33 +0200)
commit7dfe7d240e85ad1d7b03ffb1334284a0848e2f4e
treef75b9e913a6fb0e9f46ac32b1f74ade011f84c0a
parent0bf32cee6649139e1540c9293b4f95f88447af1e
BUILD: makefile: add a new generic target "tiny"

This target disables all possible features except poll(). It is meant to
serve as a base for small embedded setups, on top of which one may manually
enable select features. Even threads, traces/h2/fcgi/SPOE are disabled.
The default executable is roughly 80% smaller than with linux-glibc:

  $ size haproxy-linux-glibc haproxy-tiny
     text    data     bss      dec    hex filename
  3660924  176964 9868784 13706672 d125b0 haproxy-linux-glibc
  2537864  146512   84928  2769304 2a4198 haproxy-tiny

With SSL enabled, the difference shrinks a bit (-77%):

  $ size haproxy-linux-glibc-ssl haproxy-tiny-ssl
     text    data     bss      dec    hex filename
  4163373  208788 9873904 14246065 d960b1 haproxy-linux-glibc-ssl
  2950852  177732   90048  3218632 311cc8 haproxy-tiny-ssl
INSTALL
Makefile