[PATCH 03/12] configure.sh: expand tilde from CROSS_COMPILE variable

Mikko Rapeli <[email protected]>
Newsgroups org.kernel.vger.trinity
Message-ID <[email protected]>
Users can define cross compiler paths like
CROSS_COMPILE="ccache ~/bin/arm/bin/..." and would like this to work.

Signed-off-by: Mikko Rapeli <[email protected]>
---
 configure.sh |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure.sh b/configure.sh
index c1a5ad2..824abea 100755
--- a/configure.sh
+++ b/configure.sh
@@ -12,7 +12,8 @@ MISSING_DEFS=0
 
 [ -z "$CC" ] && CC=gcc
 
-CC=${CROSS_COMPILE}${CC}
+# expand tilde
+CC="$(eval echo ${CROSS_COMPILE}${CC})"
 
 echo "/* This file is auto-generated by configure.sh */" > config.h
 
-- 
1.7.9.5
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.