aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Ferrell <major@homeonderanged.org>2014-06-26 14:26:40 -0700
committerMark Ferrell <major@homeonderanged.org>2014-06-26 14:26:40 -0700
commit52520d9246fd5e09aa2d4c367db1da9c839b87e1 (patch)
treec46f17037d6cf27d12d091ff400c7f8db142ed75
parent79802fcf4afc848b16b6674633690aef152934bf (diff)
Better toolchain output
-rwxr-xr-xlibexec/build-query8
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