]> diplodocus.org Git - nmh/commitdiff
Echo CFLAGS in configure line, and only include if set.
authorDavid Levine <dlevine@akamai.com>
Tue, 21 Feb 2017 15:31:57 +0000 (10:31 -0500)
committerDavid Levine <dlevine@akamai.com>
Tue, 21 Feb 2017 15:31:57 +0000 (10:31 -0500)
build_nmh

index 6958faa..e1f04a8 100755 (executable)
--- a/build_nmh
+++ b/build_nmh
@@ -373,8 +373,8 @@ if [ -z "$CFLAGS" ]; then
   fi
 fi
 
-printf '\n./configure %s\n' "$config_opts"
-./configure CFLAGS="${CFLAGS}" $config_opts
+printf "\n./configure ${CFLAGS:+CFLAGS=\"${CFLAGS}\" }$config_opts\n"
+./configure ${CFLAGS:+CFLAGS="${CFLAGS}" }$config_opts
 status=$?
 
 if [ $status -eq 0 ]; then