projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0056ea
)
trylink: use "mktemp tmp.XXXXXXXXXX" to placate OS X
author
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 12 Jul 2016 11:54:35 +0000
(13:54 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 12 Jul 2016 11:54:35 +0000
(13:54 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
scripts/trylink
patch
|
blob
|
history
diff --git
a/scripts/trylink
b/scripts/trylink
index 145df9959091637935a88817132a6f95094a13a2..c2a431626672916954a68eaff05660034529842c 100755
(executable)
--- 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>