From 52520d9246fd5e09aa2d4c367db1da9c839b87e1 Mon Sep 17 00:00:00 2001 From: Mark Ferrell Date: Thu, 26 Jun 2014 14:26:40 -0700 Subject: Better toolchain output --- libexec/build-query | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libexec/build-query b/libexec/build-query index b3e23c5..2edcae9 100755 --- a/libexec/build-query +++ b/libexec/build-query @@ -183,10 +183,12 @@ case "${QUERY_ACTION}" in cat<<-EOF CC="${CC}" + export CC CXX="${CXX}" + export CXX CROSS_COMPILE="${CROSS_COMPILE}" + export CROSS_COMPILE EOF - export CC CXX CROSS_COMPILE # Note: we do not set AS since we often use gcc as the assembler @@ -194,9 +196,9 @@ case "${QUERY_ACTION}" in aclocal autopoint libtool libtoolize; do var="$(echo "${cmd}"|tr '[a-z]' '[A-Z]')" if command -v "${CROSS_COMPILE}${cmd}" > /dev/null 2>&1; then - echo "${var}=${CROSS_COMPILE}${cmd}" + echo "${var}=\"${CROSS_COMPILE}${cmd}\"" else - echo "${var}=${cmd}" + echo "${var}=\"${cmd}\"" fi echo "export ${var}" done -- cgit v1.2.3-18-g5258