]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
build: use more portable flag for mktemp
authorMatthew Barr <matthew.barr@intel.com>
Wed, 26 Jul 2017 04:01:57 +0000 (14:01 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Wed, 26 Jul 2017 05:51:23 +0000 (15:51 +1000)
Fixes github issue #60

cmake/build_wrapper.sh

index 70392229cec114804255fb18d48c16e925606372..a6ee3b26917cd96b8d193068707ca2d05101ec7c 100755 (executable)
@@ -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}