sys/asan.sh: Use -fsanitize=... instead of -lasan when linking (#15375) ##build

This commit is contained in:
Khairul Azhar Kasmiran 2019-10-28 23:09:11 +08:00 committed by radare
parent 27e68f0005
commit 6190995828
1 changed files with 3 additions and 2 deletions

View File

@ -27,8 +27,9 @@ for a in $ASAN ; do
export CFLAGS="${CFLAGS} -fsanitize=$a"
done
if [ "`uname`" != Darwin ]; then
export CFLAGS="${CFLAGS} -lasan"
export LDFLAGS="-lasan"
for a in $ASAN ; do
export LDFLAGS="${LDFLAGS} -fsanitize=$a"
done
fi
echo 'int main(){return 0;}' > .a.c