Browse Source

use parameters instead of pre-defined values

Steffen Jaeckel 8 years ago
parent
commit
315d03ccd5
1 changed files with 1 additions and 3 deletions
  1. 1 3
      scan_build.sh

+ 1 - 3
scan_build.sh

@@ -14,6 +14,4 @@ make clean > /dev/null
 scan_build=$(which scan-build)
 [ -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"
-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"