]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: makefile: include EXTRA_MAKE in the .build_opts construction
authorWilly Tarreau <w@1wt.eu>
Fri, 29 May 2026 09:07:38 +0000 (11:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 29 May 2026 09:07:38 +0000 (11:07 +0200)
EXTRA_MAKE allows to source an external makefile to bring new options
that will result in including add-ons etc. It must be part of the
construction of .build_opts that decides whether or not existing .o
are reusable or need to be rebuilt, otherwise we can end up with a mix
of .o built with some options and others with different options.

No backport is needed, as this appeared in 3.4.

Makefile

index db1fed0a94de26a4a600caf2f942f4f8702d9fe7..7e0448db6661ff1ccdb50be996148c3b6ca632d6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1003,7 +1003,7 @@ IGNORE_OPTS=help install install-man install-doc install-bin \
 
 ifneq ($(TARGET),)
 ifeq ($(filter $(firstword $(MAKECMDGOALS)),$(IGNORE_OPTS)),)
-build_opts = $(shell rm -f .build_opts.new; echo \'$(TARGET) $(BUILD_OPTIONS) $(VERBOSE_CFLAGS) $(WARN_CFLAGS) $(NOWARN_CFLAGS) $(DEBUG)\' > .build_opts.new; if cmp -s .build_opts .build_opts.new; then rm -f .build_opts.new; else mv -f .build_opts.new .build_opts; fi)
+build_opts = $(shell rm -f .build_opts.new; echo \'$(TARGET) $(BUILD_OPTIONS) $(EXTRA_MAKE) $(VERBOSE_CFLAGS) $(WARN_CFLAGS) $(NOWARN_CFLAGS) $(DEBUG)\' > .build_opts.new; if cmp -s .build_opts .build_opts.new; then rm -f .build_opts.new; else mv -f .build_opts.new .build_opts; fi)
 .build_opts: $(build_opts)
 else
 .build_opts: