From 91f6218913ff8ebc2cff395a66806c888b34e8df Mon Sep 17 00:00:00 2001 From: orbea Date: Wed, 25 Oct 2017 18:03:51 -0700 Subject: [PATCH] qb: Sort set variables. --- qb/config.libs.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qb/config.libs.sh b/qb/config.libs.sh index 9a0498429e..7c0c06bc20 100644 --- a/qb/config.libs.sh +++ b/qb/config.libs.sh @@ -518,7 +518,8 @@ while [ $# -gt 0 ]; do tmpvar="${1%=*}" shift 1 var="${tmpvar#HAVE_}" - VARS="${VARS} $var" + vars="${vars} $var" done +VARS="$(printf %s "$vars" | tr ' ' '\n' | sort)" create_config_make config.mk $(printf %s "$VARS") create_config_header config.h $(printf %s "$VARS")