From 921be5ad06ec8a8318c2036a614e7b7e8d43fc57 Mon Sep 17 00:00:00 2001 From: Pranith Kumar Date: Mon, 13 Jul 2015 00:57:33 -0400 Subject: [PATCH] Fix check for multi-string CC --- make.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/make.sh b/make.sh index 2d4a4977..cc912f76 100755 --- a/make.sh +++ b/make.sh @@ -68,8 +68,8 @@ function build { ${MAKE} clean - if [ ${CC}x != x ]; then - ${MAKE} CC=$CC $* + if [ -n "$CC" ]; then + ${MAKE} CC="$CC" $* else ${MAKE} $* fi @@ -101,14 +101,14 @@ function install { fi else # not OSX if test -d /usr/lib64; then - if [ ${CC}x != x ]; then - ${MAKE} LIBDIRARCH=lib64 CC=$CC install + if [ -n "$CC" ]; then + ${MAKE} LIBDIRARCH=lib64 CC="$CC" install else ${MAKE} LIBDIRARCH=lib64 install fi else - if [ ${CC}x != x ]; then - ${MAKE} CC=$CC install + if [ -n "$CC" ]; then + ${MAKE} CC="$CC" install else ${MAKE} install fi