diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-10-30 15:18:22 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-10-30 15:18:22 +0000 |
commit | aaeea311e6a8caed14511dc6489665ee9ad681d0 (patch) | |
tree | 1e0208d98fef78f8e9ed1afcbf0de853bad188d8 /package | |
parent | 3e8d7a2c361efec817ad276d2253df118327728a (diff) | |
download | master-187ad058-aaeea311e6a8caed14511dc6489665ee9ad681d0.tar.gz master-187ad058-aaeea311e6a8caed14511dc6489665ee9ad681d0.tar.bz2 master-187ad058-aaeea311e6a8caed14511dc6489665ee9ad681d0.zip |
busybox: fix non-portable invocation of mktemp
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47289 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/utils/busybox/patches/102-trylink_mktemp_fix.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/package/utils/busybox/patches/102-trylink_mktemp_fix.patch b/package/utils/busybox/patches/102-trylink_mktemp_fix.patch new file mode 100644 index 0000000000..ed1dcbb66f --- /dev/null +++ b/package/utils/busybox/patches/102-trylink_mktemp_fix.patch @@ -0,0 +1,20 @@ +--- a/scripts/trylink ++++ b/scripts/trylink +@@ -46,7 +46,7 @@ try() { + } + + check_cc() { +- local tempname="$(mktemp)" ++ local tempname="$(mktemp /tmp/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/tmp.XXXXXXXXXX)" + local r + echo "\ + #include <stdlib.h> |