From f16edcd34c704d1ce6a00c68954bd8318de21df0 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 20 Nov 2024 17:34:36 +0100 Subject: [PATCH] BUILD: makefile: build flags.c before haproxy to speed up the build The end of the build is often super slow. In practice it's flags.o that now takes ages (3.4 seconds) and blocks everything on a single core at the end. Let's declare it before the haproxy target so that it starts earlier. On a quad-2.2 GHz CPU, the build time goes down from 44 to 42s and the end feels less painful. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6a9f84cf3..09260ca62 100644 --- a/Makefile +++ b/Makefile @@ -936,7 +936,7 @@ all: @echo @exit 1 else -all: haproxy dev/flags/flags $(EXTRA) +all: dev/flags/flags haproxy $(EXTRA) endif # obsolete targets endif # TARGET