Default to disable-sanitizers
This commit is contained in:
parent
085df46f42
commit
24e0799c77
20
build.sh
20
build.sh
|
@ -1,4 +1,20 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh -x
|
||||
|
||||
configureOpts="--disable-sanitizers"
|
||||
|
||||
while getopts ":hd" opt; do
|
||||
case ${opt} in
|
||||
h ) echo "Use -d to turn on sanitizers (for debugging only)"
|
||||
exit;;
|
||||
d ) configureOpts=""
|
||||
;;
|
||||
\? ) echo "Usage: $0 [-h] [-d]"
|
||||
exit;;
|
||||
esac
|
||||
done
|
||||
|
||||
configureOpts="${configureOpts} --prefix=/usr --sysconfdir=/etc"
|
||||
|
||||
autoreconf -fiv
|
||||
|
||||
BUILD_DIR=build/
|
||||
|
@ -6,6 +22,6 @@ rm -rf $BUILD_DIR
|
|||
mkdir -vp $BUILD_DIR
|
||||
cd $BUILD_DIR || { echo "cd $BUILD_DIR"; exit 127; }
|
||||
|
||||
../configure --prefix=/usr --sysconfdir=/etc
|
||||
../configure ${configureOpts}
|
||||
|
||||
make
|
||||
|
|
Loading…
Reference in New Issue