]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: makefile: sort the features list
authorWilly Tarreau <w@1wt.eu>
Thu, 22 Dec 2022 18:51:30 +0000 (19:51 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Dec 2022 15:53:35 +0000 (16:53 +0100)
The features list that appears in -vv appears in a random order, which
always makes it a pain to look for certain features. Let's sort it.

include/make/options.mk

index 4179e9aa7f5f2e3e4f18f7c80ed476fb6c43b544..db4502c4b949c1636e7a765ce6e28afd540ab92c 100644 (file)
@@ -23,7 +23,7 @@ build_options   = $(foreach opt,$(use_opts),$(call ignore_implicit,$(opt)))
 # Make a list of all known features with +/- prepended depending on their
 # activation status. Must be a macro so that dynamically enabled ones are
 # evaluated with their current status.
-build_features  = $(foreach opt,$(patsubst USE_%,%,$(use_opts)),$(if $(USE_$(opt)),+$(opt),-$(opt)))
+build_features  = $(foreach opt,$(patsubst USE_%,%,$(sort $(use_opts))),$(if $(USE_$(opt)),+$(opt),-$(opt)))
 
 # This returns a list of -DUSE_* for all known USE_* that are set
 opts_as_defines = $(foreach opt,$(use_opts),$(if $($(opt)),-D$(opt),))