build: avoid file path impact on fat runtime build

Fixes github issue #137
This commit is contained in:
Wang, Xiang W 2019-03-26 06:19:03 -04:00 committed by Wang Xiang W
parent 5c8f06e4c8
commit f0bde3721e

View File

@ -9,7 +9,7 @@ PREFIX=$1
KEEPSYMS_IN=$2
shift 2
# $@ contains the actual build command
OUT=$(echo "$@" | sed 's/.* -o \(.*\.o\).*/\1/')
OUT=$(echo "$@" | rev | cut -d ' ' -f 2- | rev | sed 's/.* -o \(.*\.o\).*/\1/')
trap cleanup INT QUIT EXIT
SYMSFILE=$(mktemp -p /tmp ${PREFIX}_rename.syms.XXXXX)
KEEPSYMS=$(mktemp -p /tmp keep.syms.XXXXX)