From 8337d99574f98792c75d1053fe1c050f73533b5e Mon Sep 17 00:00:00 2001 From: Matthew Barr Date: Wed, 26 Jul 2017 14:01:57 +1000 Subject: [PATCH] build: use more portable flag for mktemp Fixes github issue #60 --- cmake/build_wrapper.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/build_wrapper.sh b/cmake/build_wrapper.sh index 70392229..a6ee3b26 100755 --- a/cmake/build_wrapper.sh +++ b/cmake/build_wrapper.sh @@ -11,8 +11,8 @@ shift 2 # $@ contains the actual build command OUT=$(echo "$@" | sed 's/.* -o \(.*\.o\).*/\1/') trap cleanup INT QUIT EXIT -SYMSFILE=$(mktemp --tmpdir ${PREFIX}_rename.syms.XXXXX) -KEEPSYMS=$(mktemp --tmpdir keep.syms.XXXXX) +SYMSFILE=$(mktemp -p /tmp ${PREFIX}_rename.syms.XXXXX) +KEEPSYMS=$(mktemp -p /tmp keep.syms.XXXXX) # find the libc used by gcc LIBC_SO=$("$@" --print-file-name=libc.so.6) cp ${KEEPSYMS_IN} ${KEEPSYMS}