summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/xcompile/xcompile11
1 files changed, 6 insertions, 5 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index e256c0d749..cb27306935 100644
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -33,6 +33,12 @@ clean_up() {
fi
}
+# Create temporary file(s).
+TMPFILE="$(mktemp /tmp/temp.XXXX 2>/dev/null || echo /tmp/temp.78gOIUGz)"
+touch "$TMPFILE"
+trap clean_up EXIT
+
+
program_exists() {
type "$1" >/dev/null 2>&1
}
@@ -155,11 +161,6 @@ AR_${TARCH}:=${GCCPREFIX}ar
EOF
}
-# Create temporary file(s).
-TMPFILE="$(mktemp /tmp/temp.XXXX 2>/dev/null || echo /tmp/temp.78gOIUGz)"
-touch "$TMPFILE"
-trap clean_up EXIT
-
# Architecture definition
SUPPORTED_ARCHITECTURE="x86 armv7 aarch64"