|
@@ -14,6 +14,4 @@ make clean > /dev/null
|
|
scan_build=$(which scan-build)
|
|
scan_build=$(which scan-build)
|
|
[ -z "$scan_build" ] && scan_build=$(find /usr/bin/ -name 'scan-build-*' | sort -nr | head -n1) || true
|
|
[ -z "$scan_build" ] && scan_build=$(find /usr/bin/ -name 'scan-build-*' | sort -nr | head -n1) || true
|
|
[ -z "$scan_build" ] && { echo "couldn't find clang scan-build"; exit 1; } || echo "run $scan_build"
|
|
[ -z "$scan_build" ] && { echo "couldn't find clang scan-build"; exit 1; } || echo "run $scan_build"
|
|
-export CFLAGS="-DUSE_LTM -DLTM_DESC -I/usr/include"
|
|
|
|
-export EXTRALIBS="-ltommath"
|
|
|
|
-$scan_build --status-bugs make -f makefile.unix all CFLAGS="$CFLAGS" EXTRALIBS="$EXTRALIBS"
|
|
|
|
|
|
+$scan_build --status-bugs make -f makefile.unix all CFLAGS="$2" EXTRALIBS="$5"
|