summaryrefslogtreecommitdiff
path: root/scripts/trylink
diff options
context:
space:
mode:
authorDenys Vlasenko2016-07-12 13:54:35 +0200
committerDenys Vlasenko2016-07-12 13:54:35 +0200
commit2ae86ad1c64b4de9bb63464d9a783229ed8e5dd0 (patch)
treedacb3e4cb976845a17fd4f1682c0387068830eb3 /scripts/trylink
parentb0056ea86d427d76bb4c08506198d0c97075fdf6 (diff)
downloadbusybox-2ae86ad1c64b4de9bb63464d9a783229ed8e5dd0.zip
busybox-2ae86ad1c64b4de9bb63464d9a783229ed8e5dd0.tar.gz
trylink: use "mktemp tmp.XXXXXXXXXX" to placate OS X
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/trylink')
-rwxr-xr-xscripts/trylink4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/trylink b/scripts/trylink
index 145df99..c2a4316 100755
--- a/scripts/trylink
+++ b/scripts/trylink
@@ -46,7 +46,7 @@ try() {
}
check_cc() {
- local tempname="$(mktemp)"
+ local tempname="$(mktemp tmp.XXXXXXXXXX)"
local r
echo "int main(int argc,char**argv){return argv?argc:0;}" >"$tempname".c
# Can use "-o /dev/null", but older gcc tend to *unlink it* on failure! :(
@@ -61,7 +61,7 @@ check_cc() {
}
check_libc_is_glibc() {
- local tempname="$(mktemp)"
+ local tempname="$(mktemp tmp.XXXXXXXXXX)"
local r
echo "\
#include <stdlib.h>