]> diplodocus.org Git - nmh/commitdiff
Reorder configure options to be before variables
authorKen Hornstein <kenh@pobox.com>
Sun, 28 Jul 2019 01:22:12 +0000 (21:22 -0400)
committerKen Hornstein <kenh@pobox.com>
Sun, 28 Jul 2019 01:22:12 +0000 (21:22 -0400)
Reorder the configure options generated by build_nmh so they
will be before the variables, otherwise they end up IN things like
CFLAGS.  Fixes bug #56680.

build_nmh

index 468e5fe2683d0508955415a6d2190d77a080c4d1..ce35594d8c0aed37fdbb28f7fe76dd3c957220f9 100755 (executable)
--- a/build_nmh
+++ b/build_nmh
@@ -380,8 +380,8 @@ if [ -z "$CFLAGS" ]; then
   fi
 fi
 
-printf "\n./configure ${CFLAGS:+CFLAGS=\"${CFLAGS}\" }$config_opts\n"
-./configure ${CFLAGS:+CFLAGS="${CFLAGS}"" "}$config_opts
+printf "\n./configure $config_opts ${CFLAGS:+CFLAGS=\"${CFLAGS}\" }\n"
+./configure $config_opts ${CFLAGS:+CFLAGS="${CFLAGS}"" "}
 status=$?
 
 if [ $status -eq 0 ]; then