From: Willy Tarreau Date: Thu, 22 Dec 2022 18:51:30 +0000 (+0100) Subject: BUILD: makefile: sort the features list X-Git-Tag: v2.8-dev1~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=848362f2d2251fe90236754c3a78d18a42068e81;p=thirdparty%2Fhaproxy.git BUILD: makefile: sort the features list 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. --- diff --git a/include/make/options.mk b/include/make/options.mk index 4179e9aa7f..db4502c4b9 100644 --- a/include/make/options.mk +++ b/include/make/options.mk @@ -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),))