mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
trylink: use "mktemp tmp.XXXXXXXXXX" to placate OS X
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
b0056ea86d
commit
2ae86ad1c6
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user