diff options
author | Mark Ferrell <major@homeonderanged.org> | 2014-06-26 14:26:40 -0700 |
---|---|---|
committer | Mark Ferrell <major@homeonderanged.org> | 2014-06-26 14:26:40 -0700 |
commit | 52520d9246fd5e09aa2d4c367db1da9c839b87e1 (patch) | |
tree | c46f17037d6cf27d12d091ff400c7f8db142ed75 | |
parent | 79802fcf4afc848b16b6674633690aef152934bf (diff) |
Better toolchain output
-rwxr-xr-x | libexec/build-query | 8 |
1 files 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 |