From: Denys Vlasenko Date: Tue, 12 Jul 2016 11:54:35 +0000 (+0200) Subject: trylink: use "mktemp tmp.XXXXXXXXXX" to placate OS X X-Git-Tag: 1_26_0~322 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2ae86ad1c64b4de9bb63464d9a783229ed8e5dd0;p=oweals%2Fbusybox.git trylink: use "mktemp tmp.XXXXXXXXXX" to placate OS X Signed-off-by: Denys Vlasenko --- diff --git a/scripts/trylink b/scripts/trylink index 145df9959..c2a431626 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